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 without using any loop (if, for, while
etc) to print numbers from 1 to 100 and 100 to 1;

Answer Posted / harpreet kaur

we can create our own header file having a function to
print nos with loop and then use that header file in new
prog with the functoin defined in it.

Is This Answer Correct ?    30 Yes 37 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sizeof array?

1012


What is extern keyword in c?

1094


Write a program for finding factorial of a number.

1041


What are file streams?

974


Is malloc memset faster than calloc?

1020


Explain how can you be sure that a program follows the ansi c standard?

1416


If I have a char * variable pointing to the name of a function ..

1138


which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above

2019


How can you tell whether two strings are the same?

1215


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

1101


what is the function of pragma directive in c?

1072


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

968


Is c procedural or functional?

989


why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above

1081


What is the difference between pure virtual function and virtual function?

1080