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 does 4d mean in c?
Give me the code of in-order recursive and non-recursive.
Explain enumerated types in c language?
Explain what are run-time errors?
Stimulate calculator using Switch-case-default statement for two numbers
What is a constant and types of constants in c?
How many identifiers are there in c?
What is #line used for?
What is a nested loop?
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset
When was c language developed?
What is the use of static variable in c?
Why is event driven programming or procedural programming, better within specific scenario?
What is the hardest programming language?
What is the difference between functions abs() and fabs()?