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 |
write a program to find the largest and second largest integer from an array
Meaning of () in c
Is null valid for pointers to functions?
what is a function pointer and how all to declare ,define and implement it ???
which of 'arrays' or 'pointers' are faster?
Is exit(status) truly equivalent to returning the same status from main?
what is uses of .net
Why static is used in c?
What is the purpose of the preprocessor directive error?
how we can say java is platform independent, while we require JVM for that particular Operating System?
find a number whether it is even or odd without using any control structures and relational operators?
22 Answers Microsoft, Shashank Private Limited,
How do you print an address?