Answer Posted / pratikjis@yahoo.com
#include "stdio.h"
#include "conio.h"
void main()
{
int i;
clrscr();
printf("Enter the number");
scanf("%d", &i);
if(i%2==0)
{
printf("the number is even %d", i);
}
else
{
printf("The number is odd %d", i);
}
getch();
}
| Is This Answer Correct ? | 36 Yes | 19 No |
Post New Answer View All Answers
What is a newline escape sequence?
Can a pointer be null?
How do you determine a file’s attributes?
How can I split up a string into whitespace-separated fields?
How do you generate random numbers in C?
What is the purpose of macro in C language?
What is the purpose of the statement: strcat (S2, S1)?
how to find binary of number?
code for replace tabs with equivalent number of blanks
What is operator promotion?
What is a pointer in c plus plus?
Explain how can you avoid including a header more than once?
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
What standard functions are available to manipulate strings?
Difference between malloc() and calloc() function?