Write a pro-gramme to determine whether the number is even or odd?
Answer Posted / 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 |
Post New Answer View All Answers
How many types of operators are there in c?
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
Why clrscr is used in c?
Explain how does flowchart help in writing a program?
What is function what are the types of function?
What is use of #include in c?
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
Implement bit Array in C.
Write a program to generate random numbers in c?
Why is sprintf unsafe?
Why is event driven programming or procedural programming, better within specific scenario?
What is unary operator?
Define circular linked list.
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
What are the differences between new and malloc in C?