Check whether the input number is divisible by 12.

In this python if else program, we will check whether the input number is divisible by 12 or not.

Steps to solve the program
  1. Take a number as input.
  2. Using an if-else statement check whether the input number is divisible by 12 or not.
  3. Print the respective output.
				
					num = 121

if num % 12 == 0:
    print("True")
else:
    print("False")
				
			

Output :

				
					False
				
			

Related Articles

check whether the input number is a float or not if yes then round up the number to 2 decimal places.

check whether the input number is a square of 6 or not.

Leave a Comment