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 / kt vikram

We are using 'goto' statement to print the numbers without using
if,for,while etc.

Is This Answer Correct ?    38 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.

1287


What is formal argument?

1141


Explain pointer. What are function pointers in C?

1087


What is the difference between constant pointer and constant variable?

1234


What is scanf () in c?

1131


what are enumerations in C

1164


What 'lex' does?

1190


What happens if a header file is included twice?

1042


Tell me what is null pointer in c?

1086


Write a program to swap two numbers without using the third variable?

1078


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

1996


Is python a c language?

1020


What are the loops in c?

999


What is difference between array and structure in c?

1199


Can you tell me how to check whether a linked list is circular?

1430