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 c program to print a given number as odd or even
without using loop statements,(no if ,while etc)

Answer Posted / vignesh1988i

sorry , just change printf() as.... printf("0 - even number \t 1 - odd number \n ");

thank u

Is This Answer Correct ?    12 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to find binary of number?

4414


How can I invoke another program or command and trap its output?

1079


Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)

6831


What language is c written?

1030


How many bytes are occupied by near, far and huge pointers (dos)?

1142


can anyone please tell about the nested interrupts?

2107


What is string function c?

1003


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

1015


What is the best way of making my program efficient?

1013


Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?

1027


Is c procedural or object oriented?

988


will u please send me the placement papers to my mail???????????????????

1823


What does *p++ do?

1009


What is the difference between text and binary i/o?

1035


Explain how can you determine the size of an allocated portion of memory?

1095