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
What is a char in c?
What is structure in c definition?
main() { printf("hello"); fork(); }
What is a macro?
How many levels deep can include files be nested?
Explain what is the most efficient way to store flag values?
What are the restrictions of a modulus operator?
What are types of preprocessor in c?
How can I swap two values without using a temporary?
Why do we use null pointer?
Write a program to reverse a linked list in c.
Why is C language being considered a middle level language?
Are comments included during the compilation stage and placed in the EXE file as well?
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
Write the control statements in C language