#include<stdio.h> main() { int n; printf("Enter an integer\n"); scanf("%d",&n); if ( (n/2)*2 == n ) printf("Even\n"); else printf("Odd\n"); return 0; }
Popular Posts
-
Make Your Own Cloud Inventor makes machine to create custom-made ‘clouds’. When one-time magician Francisco Guerra decided to float...
-
This c program prints current system date. To print date we will use getdate function. C programming code #include<stdio.h> #include...
-
Google history Google timeline Our company has packed a lot in to a relatively young li...
-
1.What is an operating system? Ans: An operating system is a program that acts as an intermediary between the user and the computer har...
Tuesday, 28 February 2012
c program to check odd or even
Labels:
Model c programs
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment