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 the difference between pure virtual function and virtual function?
wat is the output int main() { char s1[]="Hello"; char s2[]="Hello"; if(s1==s2) printf("Same"); else printf("Diff"); }
What are the header files used in c language?
Explain how can I make sure that my program is the only one accessing a file?
Consider a language that does not have arrays but does have stacks as a data type.and PUSH POP..are all defined .Show how a one dimensional array can be implemented by using two stacks.
Why should I use standard library functions instead of writing my own?
When is the “void” keyword used in a function?
what is the need for main function in c?
Compare array data type to pointer data type
How can I read a directory in a C program?
2 Answers Bright Outdoor, Wipro,
Is null a keyword in c?
Design a program using an array that searches a number if it is found on the list of the given input numbers and locate its exact location in the list.