Write a program to find given number is even or odd without
using any control statement.
Answer Posted / saneemask
main()
{
{
char a[][5]= {"Even","Odd"};
int n;
printf("Enter any no.: ");
scanf("%d",&n);
printf("%s",a[n%2]);
getch();
}
{
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
Differentiate between #include<...> and #include '...'
What language is windows 1.0 written?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
In a switch statement, what will happen if a break statement is omitted?
Why do we use int main instead of void main in c?
What are the 5 organizational structures?
What does sizeof return c?
What is a volatile keyword in c?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
Why use int main instead of void main?
How many types of operators are there in c?
What is c language in simple words?
What are the types of bitwise operator?
What is s in c?