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
What is omp_num_threads?
Without Computer networks, Computers will be half the use. Comment.
What are the advantages and disadvantages of a heap?
Explain how do you sort filenames in a directory?
What is difference between && and & in c?
Explain about the functions strcat() and strcmp()?
How do you initialize pointer variables?
I need previous papers of CSC.......plz help out by posting them.......
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
Explain the use of keyword 'register' with respect to variables.
What are the 32 keywords in c?
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
In which language linux is written?
Distinguish between actual and formal arguments.
Write a code to remove duplicates in a string.