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 C++
why integer range between -327680to+32767
What is the purpose of & in scanf?
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
write a program to swap two variables a=5 , b= 10 without using third variable
Explain which function in c can be used to append a string to another string?
Where does the name "C" come from, anyway?
Explain null pointer.
Differentiate abs() function from fabs() function.
Write a C program that reads a series of strings and prints only those ending in "ed"
Explain what are global variables and explain how do you declare them?
what is difference between ++(*p) and (*p)++
17 Answers Accenture, HCL, IBM,