To find whether a number is even or odd without using any
conditional operator??
Answer Posted / sahithya
void main()
{
int n;
printf("enter n:");
scanf("%d",&n);
if(n%2==0)
printf( "even");
else
printf("odd");
}
| Is This Answer Correct ? | 15 Yes | 34 No |
Post New Answer View All Answers
hi send me sample aptitude papers of cts?
what are bit fields in c?
Explain c preprocessor?
What is the process of writing the null pointer?
What is define c?
What are loops c?
What is main function in c?
Is it acceptable to declare/define a variable in a c header?
Sir i need notes for structure,functions,pointers in c language can you help me please
Why do we use namespace feature?
What is a pointer value and address in c?
How can I swap two values without using a temporary?
Explain the difference between #include "..." And #include <...> In c?
Why do we use & in c?
Is it valid to address one element beyond the end of an array?