#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
-
WELCOME TO Govt.Thirumagal Mills College, Gudiyattam The Govt Thirumagal Mills college,Gudiyatham was established with a...
-
This c program compares two strings using strcmp , without strcmp and using pointers . For comparing strings without using library function...
-
c program to check leap year c program to check leap year: c code to check leap year, year will be entered by the user. C programming c...
-
Interview Question - Visual Basic 6 Interview questions and answers for Visual basic 6 basics and advance level,VB6 In...
-
College Logo The college logo consists of Lamp and book on the top of the emblem. In the middle,temple tower between two elephants.At the...
-
What is encapsulation?? Containing and hiding information about an object, such as internal data structures and code. Encapsulation is...
-
Palindrome number in c: A palindrome number is a number such that if we reverse it, it will not change. For example some palindrome numbers...
-
10. L&T Infotech L&T Infotech is a global IT services and solutions provider. It is a subsidiary company of is Larsen & ...
-
Important Message for Computer Users During a recent visit to an optician, one of my friends ...
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