Skip to main content

Posts

Showing posts with the label Write a Python program to check whether a number is even or odd.

ads1

Python Condition , 5. Write a Python program to check whether a number is even or odd.

5.Write a Python program to check whether a number is even or odd. Solution :-  no1 = int(input("Enter the number :- ")) if(no1 % 2 ==0):     print("The Number is Even :-",no1) else:     print("The Number is Odd :-",no1) Output:-

ads2