find a number whether it is even or odd without using any
control structures and relational operators?
Answer Posted / guest
#include<stdio.h>
#include<conio.h>
void main()
{
int x;
if(x%2==0)
printf("even");
else
printf("odd");
getch();
}
| Is This Answer Correct ? | 4 Yes | 25 No |
Post New Answer View All Answers
What does d mean?
Who is the main contributor in designing the c language after dennis ritchie?
How can I invoke another program or command and trap its output?
What are the c keywords?
Explain 'bit masking'?
What is static volatile in c?
What are the two types of functions in c?
What is ctrl c called?
if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.
explain what is an endless loop?
In a switch statement, what will happen if a break statement is omitted?
What is data type long in c?
What is the meaning of 2d in c?
What does void main () mean?
What is boolean in c?