Input a number. If the number is less than 50, then print “Input a greater number, else check if the number is divisible by 5. If the number is divisible by 5 then print, “Divisible by 5”, else print, “Not Divisible by 5”.
Answers
Answered by
0
Answer:
a=int(input('Enter a number:'))
if a<50:
print('Input a greater number.')
else:
if a%5==0:
print('Divisible by 5')
else:
print('Not divisible by 5')
Explanation:
Attachments:
Similar questions