Python program to check given number is even or odd

0
48
num=int(input("Enter a number to check even or odd "))
if(num%2==0): # checks for remainder is zero or not for even number it should be 0
   print("",num," is a even number ");
else:
   print("",num," is a odd number ");

   Outpot 1:
          Enter a number to check even or odd 20
          20  is a even number 
   Output 2:
          Enter a number to check even or odd 25
          25  is a odd number 

इन्हें भी देखें।

Python Programs के लिये यहाँ click करें।

 

Python program to check given number is even or odd program to check given number is even or odd in python write a program to check given number is even or odd in python write a program to check given number is even or odd program to check whether a given number is even or odd program to check whether a given number is even or odd in python program to check if a number is even or odd in python write a program to check if a number is even or odd in python write a program to check if a number is even or odd a program to check whether a number is even or odd a program to check whether a number is even or odd in python

LEAVE A REPLY

Please enter your comment!
Please enter your name here