find a number whether it is even or odd without using any
control structures and relational operators?
Answer Posted / mohd parvez 09311349697
#include<stdio.h>
#include<conio.h>
void main()
{
int num;
printf("Enter a number:");
scanf("%d",&num);
num%2&&printf("Number is ODD")||printf("Number is EVEN");
getch();
}
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list
What is the use of getchar functions?
What are the 4 types of unions?
Explain what are multidimensional arrays?
What is string function in c?
Is main an identifier in c?
I heard that you have to include stdio.h before calling printf. Why?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
What is openmp in c?
What is s in c?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
What is the time and space complexities of merge sort and when is it preferred over quick sort?
Write a program for Overriding.
Give differences between - new and malloc() , delete and free() ?
Explain the difference between malloc() and calloc() in c?