171k views
0 votes
Write a python program to display "Hello, How are you?" if a number entered by

user is a multiple of five, otherwise print "Bye Bye"

1 Answer

1 vote

Answer:

Here's a simple Python program that takes input from the user and checks if the entered number is a multiple of five, then displays the appropriate message accordingly:

# Get input from user

num = int(input("Enter a number: "))

# Check if the number is a multiple of five

if num % 5 == 0:

print("Hello, How are you?")

else:

print("Bye Bye")

User Takien
by
8.4k points