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 / pur

main()
{
int i =100;

start:
if( i == 0)
goto end;
printf(" %d ",i)
i--;
goto start;

end:
printf(" end of the program");
}

Is This Answer Correct ?    20 Yes 47 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are loops in c?

961


What is the purpose of sprintf() function?

1066


What is the Purpose of 'extern' keyword in a function declaration?

1043


What is calloc() function?

1055


What is the difference between c &c++?

1102


What is property type c?

1051


What are the 5 elements of structure?

1047


How are variables declared in c?

1046


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

2029


Is void a keyword in c?

936


What is the difference between local variable and global variable in c?

1173


What does malloc () calloc () realloc () free () do?

1016


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

1170


What is the deal on sprintf_s return value?

1078


Which is better between malloc and calloc?

1134