Answer Posted / vivek singh
#include<stdio.h>
#include<conio.h>
void main()
{
int num;
printf("Enter the number:");
scanf("%d",&num);
if(num%2==0)
{
printf("Number is Even");
}
else
{
printf("Number is Odd");
}
getch();
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Can an array be an Ivalue?
What are lookup tables in c?
What is indirection in c?
Which is an example of a structural homology?
what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9
What is the difference between local variable and global variable in c?
What is c language and why we use it?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
Do you know the difference between exit() and _exit() function in c?
What is putchar() function?
Which is better oop or procedural?
What is structure data type in c?
What is the use of getch ()?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
What are structural members?