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
Explain the binary height balanced tree?
Tell me what are bitwise shift operators?
How can I find the modification date and time of a file?
What is maximum size of array in c?
What are the different types of control structures in programming?
In a switch statement, what will happen if a break statement is omitted?
What are the types of type qualifiers in c?
What is a lvalue
What is abstract data structure in c?
number of times a digit is present in a number
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
Explain the difference between call by value and call by reference in c language?
Can we compile a program without main() function?
What is pragma c?
Are the variables argc and argv are local to main?