C program to check the given number is even or odd
kw.c
Output
kodingwindow@kw:~$ gcc kw.c
kodingwindow@kw:~$ ./a.out ——————————————————————————————————————————— Program for even-odd test of a given number ——————————————————————————————————————————— Enter a number -5005 -5005 is ODD number ——————————————————————————————————————————— kodingwindow@kw:~$ ./a.out ——————————————————————————————————————————— Program for even-odd test of a given number ——————————————————————————————————————————— Enter a number 5050 5050 is EVEN number ——————————————————————————————————————————— kodingwindow@kw:~$
What Next?
C program to check the equality of given numbers
C program to demonstrate the use of goto statement
C program to demonstrate the use of break and continue statements
Advertisement