write a c program to print a given number as odd or even
without using loop statements,(no if ,while etc)
Answer Posted / vignesh1988i
#include<stdio.h>
#include<conio.h>
void main()
{
int m;
printf("0 - odd number \t 1 - even number\n");
printf("enter the number :");
scanf("%d",&m);
printf(" %d ",m&1);
getch();
}
thank u
Is This Answer Correct ? | 43 Yes | 27 No |
Post New Answer View All Answers
Are pointers integers in c?
What are reserved words with a programming language?
What are the types of operators in c?
What are the valid places to have keyword “break”?
why programs in c are running with out #include
a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none
using only #include
What are the two forms of #include directive?
What is nested structure with example?
Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.
Explain how do you view the path?
Why main function is special give two reasons?
What is unsigned int in c?
What the advantages of using Unions?
What is bash c?