EASY 2 LEARN 'C'
Home
DotNet
Monday, 27 August 2012
program for even/odd number
Program for even/odd Number
#include<stdio.h>
main()
{
int a;
clrscr();
printf("enter the value of a:");
scanf("%d",&a);
if(a%2 == 0)
printf(" even");
else
printf("odd");
getch();
}
output
:-
enter the value of a: 7
odd
0 comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Search Box
'C' Language
'C' Programming
(27)
Arrays in 'C'
(5)
Interview Que's about 'C'
(8)
Strings in 'C'
(4)
Popular Posts
Logical Interview Questions2
Logical Interview Questions There are three boxes with fruits: one box with apples, one bo...
Simple 'c' program
Simple "C-Program" #include<stdio.h> //Header file main() ...
Approaches and Algorithm of 'C'
Approaches of 'C' Language :- These are 4 types. * Procedural Language. * Logical...
HR interview questions part2
Tell me about yourself? Why should I employ you in my company? What do you know about our company? Why did you choose our company...
your tiny steps towards programming
Your tiny steps towards programming Programming Language is divided in to two types. > ...
check addresses are correct or not
/* cosider 3 variables and find the addresses ,first two variables addresses difference is equal to another two variables ...
Logical Interview Questions
Logical Interview Questions ...
Pointers introduction
Pointer :- · It is avariable that represents the location of a data item. · It can be declared as a variable ...
Headerfiles
HEADER FILES Data ------ > Collection of information. File --...
One dimensional array example 2
One dimensional array example /* program to calculate sum of 10 numbers in an array */ #inc...
0 comments:
Post a Comment