Question 1:
Write a Python program that takes an input number from the user and checks whether
the number is divisible by both 3 and 7. If the number is divisible by both,
print "The number is divisible by both 3 and 7."
Otherwise, print "The number is not divisible by both 3 and 7."
Program :
Output:
Question 2:
Get input for a number and check if it's odd or even.
Program:
Output:
0 Comments