Answer Posted / v.karthikeyan
#include <stdio.h>
main()
{
int num;
printf("Enter a number to know the entered number is odd or
even \n");
scanf("%d",&num);
if (num%2==0)
{
printf(" The number is Even");
else
printf(" The number is Odd")
}
getch();
}
| Is This Answer Correct ? | 88 Yes | 15 No |
Post New Answer View All Answers
What is a static variable in c?
shorting algorithmS
Explain what is output redirection?
If you know then define #pragma?
What is c mainly used for?
Explain about the functions strcat() and strcmp()?
How do you do dynamic memory allocation in C applications?
How to find a missed value, if you want to store 100 values in a 99 sized array?
By using C language input a date into it and if it is right?
How can you restore a redirected standard stream?
Explain can static variables be declared in a header file?
What is define c?
What is difference between constant pointer and constant variable?
What is the sizeof () operator?
Differentiate between #include<...> and #include '...'