Write a pro-gramme to determine whether the number is even or odd?
Answer / azad sable, chiplun
void main();
{
int n;
clrscr();
printf("enter any number");
scanf("%d",&n);
if(n%2==0)
printf("\nthe number is even");
else
printf("\nthe number is odd");
}
getch();
}
| Is This Answer Correct ? | 5 Yes | 0 No |
What are the usage of pointer in c?
HOW TO ANSWER IF ASKED " WHAT KIND OF A PERSON ARE YOU?" I NEED AN ANSWER THAT IMPRESS THE INTERVIEWER
Which is not valid in C? 1) class aClass{public:int x;} 2) /* A comment */ 3) char x=12;
Explain what does a function declared as pascal do differently?
How many keywords are there in c?
Why pointers are used in c?
what does exit() do?
What is the process to create increment and decrement stamen in c?
How to write a multi-statement macro?
What are reserved words with a programming language?
what is a c-language.what is do.
Explain the properties of union.