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 |
how would a 4*3 array A[4][3] stored in Row Major Order?
How to write a multi-statement macro?
what is the difference between call by value and call by reference?
5 Answers Genpact, Global Logic, Infosys,
we have to use realloc only after malloc or calloc ? or we can use initially with out depending on whether we are using malloc or calloc in our program ?
what are far pointers?
What are the 5 elements of structure?
pgm to find middle element of linklist(in efficent manner)
how to find anagram without using string functions using only loops in c programming
How can I make a program in c to print 'Hello' without using semicolon in the code?
9 Answers C DAC, Practical Viva Questions,
char ch=10;printf("%d",ch);what is the output
What is c variable?
write a program to print sum of each row of a 2D array.