Answer Posted / k.naveen kumar
#include<stdio.h>
#include<conio.h>
main()
{
int a;
printf("Please enter the number :=> ");
scanf("%d",&a);
if (a%2==0)
printf("Even");
else
printf("odd");
getch();
}
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Do character constants represent numerical values?
Why we use int main and void main?
Explain how does free() know explain how much memory to release?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
What are the scope of static variables?
What is return type in c?
Why is sizeof () an operator and not a function?
Why c is a procedural language?
What is the benefit of using #define to declare a constant?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
In which header file is the null macro defined?
What is file in c preprocessor?
What is the difference between %d and %i?
What does it mean when a pointer is used in an if statement?