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 is wild pointer in c?
main() { int x=2, y=4 if ((x==2||y==4) x++ y++ if (y==4+1) { x=x+y; } y++; printf("The values of x and y are %d and %d."x,y); } What is the output?
class foo { public: static int func(const char*& p) const; }; This is illegal, why?
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
Efficient data structure for store/search list of 1000 records a)array b)double linked list c)circular queue d)hash table
can anyone please tell about the nested interrupts?
Write a program to generate prime factors of a given integer?
How can I discover how many arguments a function was actually called with?
There is a number and when the last digit is moved to its first position the resultant number will be 50% higher than the original number.Find the number?
What is the difference between typedef and #define?
What does the && operator do in a program code?
how to use showbits function?