c++ program for finding given number as even or odd number

c++ program for finding given number as even number

c++ program for finding given number as odd number

c++ program for finding even number

c++ program for finding odd number

Program:-

Method 1
c++ program for finding given number as even or odd number using if-else statement


Method 2
c++ program for finding given number as even or odd number using condition operator


Output:-

Enter a number
23
odd number

Output:-

Enter a number
24
even number

Leave reply

Add your comments here

Back to Top