Question #310754

Write a program to increment N by 5, if N me s greater than 10, otherwise by 1.

Expert's answer

N=int(input("Enter number: "))
if N>10:
    N+=5
else:
    N+=1
print(f"N = {N}")

LATEST TUTORIALS
APPROVED BY CLIENTS