Answer Posted / mahendiran
#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 ? | 1 Yes | 1 No |
Post New Answer View All Answers
Which is the memory area not included in C program? give the reason
What is the difference between functions getch() and getche()?
Compare and contrast compilers from interpreters.
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
explain what are actual arguments?
Define the scope of static variables.
What is the difference between struct and union in C?
What is extern variable in c with example?
What are the data types present in c?
How do you define a function?
What is openmp in c?
Should I learn data structures in c or python?
When should the const modifier be used?
Is main a keyword in c?
What is c variable?