Answer Posted / mahendiran
#include<stdio.h>
#include<conio.h>
void main()
{
int i;
clrscr();
printf("Enter the number");
scanf("%d", &i);
if(i%2==0)
{
printf("the number is even %d", i);
}
else
{
printf("The number is odd %d", i);
}
getch();
}
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
all c language question
How do you use a 'Local Block'?
What does %2f mean in c?
Explain Function Pointer?
Explain bit masking in c?
The file stdio.h, what does it contain?
Difference between Shallow copy and Deep copy?
What are the different types of endless loops?
What is void pointers in c?
What is the difference between union and structure in c?
How can you find out how much memory is available?
What are dangling pointers? How are dangling pointers different from memory leaks?
Can two or more operators such as and be combined in a single line of program code?
What are operators in c?
What are the types of pointers in c?