Answer Posted / vivek singh
#include<stdio.h>
#include<conio.h>
void main()
{
int num;
printf("Enter the number:");
scanf("%d",&num);
if(num%2==0)
{
printf("Number is Even");
}
else
{
printf("Number is Odd");
}
getch();
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Explain modulus operator. What are the restrictions of a modulus operator?
Is there anything like an ifdef for typedefs?
What is dynamic variable in c?
What is the condition that is applied with ?: Operator?
Which programming language is best for getting job 2020?
Difference between MAC vs. IP Addressing
What is c language in simple words?
What is restrict keyword in c?
Why void is used in c?
What is assignment operator?
What are the different types of linkage exist in c?
c language interview questions & answer
What is function pointer c?
What are the two forms of #include directive?
What is a program flowchart?