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 the difference between struct and typedef struct in c?
how to write optimum code to divide a 50 digit number with a 25 digit number??
c program to compute AREA under integral
Why we use stdio h in c?
What is a lvalue
What is #include stdio h?
What is the purpose of sprintf() function?
What is return in c programming?
Explain how can I make sure that my program is the only one accessing a file?
Why doesnt the call scanf work?
What is the difference between a string and an array?
How many types of arrays are there in c?
What are the various types of control structures in programming?
write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.
What is the use of pragma in embedded c?