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
How can I automatically locate a programs configuration files in the same directory as the executable?
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
Why is not a pointer null after calling free?
Where is volatile variable stored?
What is c language in simple words?
When do we get logical errors?
What is the scope of an external variable in c?
Why we write conio h in c?
what is stack , heap ,code segment,and data segment
Is c easier than java?
How to define structures? ·
What is s or c?
What are the advantages of the functions?
What is scanf () in c?
What are # preprocessor operator in c?