Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

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

2869


What is the use of getchar functions?

1234


What are the 4 types of unions?

1095


Explain what are multidimensional arrays?

1125


What is string function in c?

1052


Is main an identifier in c?

1211


I heard that you have to include stdio.h before calling printf. Why?

1117


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

1065


What is openmp in c?

1071


What is s in c?

1099


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

3151


What is the time and space complexities of merge sort and when is it preferred over quick sort?

1137


Write a program for Overriding.

1214


Give differences between - new and malloc() , delete and free() ?

1154


Explain the difference between malloc() and calloc() in c?

1104