Answer to Question #310754 in Python for Chandu

Question #310754

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

1
Expert's answer
2022-03-13T11:22:10-0400
N=int(input("Enter number: "))
if N>10:
    N+=5
else:
    N+=1
print(f"N = {N}")

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS