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...

Write a program to find the given number is odd or even
without using any loops(if,for,do,while)

Answer Posted / kiran

main()
{
int n;
printf("enter the number");
scanf("%d",&n);
n%2==0?(printf("given number is even");):(printf("given
number is odd"););

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I determine whether a character is numeric, alphabetic, and so on?

1182


In a switch statement, what will happen if a break statement is omitted?

1114


Why is c called "mother" language?

1328


How are variables declared in c?

1145


Why do we use & in c?

1047


What does the && operator do in a program code?

1279


What is this pointer in c plus plus?

1138


What does the error 'Null Pointer Assignment' mean and what causes this error?

1256


How can I recover the file name given an open stream or file descriptor?

1134


what is the diffrenet bettwen HTTP and internet protocol

1882


Explain how do I determine whether a character is numeric, alphabetic, and so on?

1181


Is the exit() function same as the return statement? Explain.

1154


Why isn't it being handled properly?

1116


Differentiate between a structure and a union.

1329


What does struct node * mean?

1062