Write a program to find the given number is odd or even
without using any loops(if,for,do,while)
Answer Posted / ramu gurram
#include<stdio.h>
int main()
{
int i;
printf("enter a number \n");
scanf("%d",i);
float f=i%2;
f==0 ? printf("given number is even") : printf("given
number is odd");
return 0;
}
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit
will u please send me the placement papers to my mail???????????????????
What is spark map function?
What is volatile keyword in c?
What is a void * in c?
How can you find the exact size of a data type in c?
Can you please explain the difference between malloc() and calloc() function?
What is a nested loop?
What is pointer and structure in c?
What is #include stdio h and #include conio h?
Explain a pre-processor and its advantages.
What is the use of static variable in c?
What's the right way to use errno?
Can a function argument have default value?