c program for check given number as odd number
c program for check given number as even number
Program:-
Method 1
c program for finding even and odd number using if - else statement
Method 2
c program for finding even and odd number using condition statement
Output:-
Enter a number
8
Even number
Output:-
Enter a number
23
Odd number
We can also check for odd and even numbers using switch case statement and using conditional operator in C
ReplyDelete