Answer Posted / dwarika
#include<stdio.h>
#include<conio.h>
int main()
{
clrscr();
int a;
printf("enter the no");
scanf("%d",&a);
if(a%2==0)
{
printf("no is even");
}
else
{
printf("odd no");
}
getch();
return 0;
}
| Is This Answer Correct ? | 56 Yes | 6 No |
Post New Answer View All Answers
How can I call a function with an argument list built up at run time?
What is a ternary operator in c?
if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.
What are static variables in c?
What is scope rule of function in c?
Differentiate between a for loop and a while loop? What are it uses?
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
Compare interpreters and compilers.
How do we print only part of a string in c?
What are structures and unions? State differencves between them.
What is the use of putchar function?
How can you determine the size of an allocated portion of memory?
What are actual arguments?
What are c identifiers?
What are the header files used in c language?