Answer Posted / dwarika
#include<stdio.h>
#include<conio.h>
int main()
{
clrscr();
int a;
printf("enter the no");
scanf("%d",&a);
if(a%2==0)
{
printf("no is even");
}
else
{
printf("odd no");
}
getch();
return 0;
}
Is This Answer Correct ? | 56 Yes | 6 No |
Post New Answer View All Answers
Are the variables argc and argv are local to main?
How can I convert a number to a string?
How can I implement a delay, or time a users response, with sub-second resolution?
If I have a char * variable pointing to the name of a function ..
What is c language used for?
Explain what is page thrashing?
If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..
What are the 4 types of programming language?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
Under what circumstances does a name clash occur?
Explain about the functions strcat() and strcmp()?
What is c mainly used for?
Explain what is the difference between far and near ?
What are header files and what are its uses in C programming?
Function calling procedures? and their differences? Why should one go for Call by Reference?