Make a flowchart and write algorithm for:
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”.
please fast its urgent
Answers
Answered by
0
Answer:
num = int(input("Please enter a number: "))
if num < 50:
print("Enter a greater number")
else:
if num % 5 == 0:
print("Divisible by 5")
else:
print("Not divisible by 5")
Similar questions