Answer Posted / nirdesh pal
#include<stdio.h>
#include<conio.h>
void main()
{
int i;
printf("enter the number");
scanf("%d",&i);
if(i%2==0)
{
printf("number is even");
else
printf("number is odd");
}
getch();
}
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
How can I delete a file?
How #define works?
Is javascript written in c?
What is the scope of an external variable in c?
How can I find out if there are characters available for reading?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
why programs in c are running with out #include
What is the best style for code layout in c?
Do you have any idea how to compare array with pointer in c?
Why do we need volatile in c?
How can I read and write comma-delimited text?
Are comments included during the compilation stage and placed in the EXE file as well?
What is malloc calloc and realloc in c?
How to declare pointer variables?
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555