Disable power-on and administrator password
Search This Blog
Wednesday, July 27, 2011
given number is odd or even
#include <stdio.h>
int
main (void)
{
/* declarations */
int a;
printf ("Enter value of a: ");
scanf ("%d", &a);
printf ("You entered: %d\n", a );
if(a % 2 == 0)
printf("a is an even integer");
else
printf("a is an odd integer\n");
return (0);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment