Tuesday, July 22, 2025

WTP in python - check the number is Even or Odd

 

Write a program that takes an integer input and checks whether it is even or odd.


num=int(input("Please Enter the Number : "))


num_check = num % 2


if (num_check == 0):

    print(f"{num} even number")

else:

    print("odd number ")

No comments:

Post a Comment

Everyone | To Get The Job | Database | All

  https://whatsapp.com/channel/0029Vb7B0Ew9MF98L2ER273b This Group help to Everyone , who are looking for the job  Also share with me if any...