Check whether the input number is a square of 6

In this python of else program, we will check whether the input number is a square of 6 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 a square of 6 i.e. 36.
  3. Print the respective output.
				
					num = 37

if num == 36:
    print("True")
else:
    print("False")
				
			

Output :

				
					True
				
			

Related Articles

check whether the input number is divisible by 12 or not.

check whether the input number is a cube of 3 or not.

Leave a Comment