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 old is c programming language?

1013


What is a node in c?

976


Where are c variables stored in memory?

1078


What is the difference between malloc() and calloc()?

1869


Why we write conio h in c?

1041


What are examples of structures?

1116


What does 3 mean in texting?

1105


how to build a exercise findig min number of e heap with list imlemented?

2077


What is the role of && operator in a program code?

1079


What is a program flowchart and how does it help in writing a program?

1145


What is %s and %d in c?

1047


If null and 0 are equivalent as null pointer constants, which should I use?

1225


Differentiate between null and void pointers.

1177


What is a char c?

1043


What is break in c?

1051