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 the header files used in c language?

995


Explain main function in c?

1044


What is gets() function?

1074


largest Of three Number using without if condition?

1527


What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

1169


What is a spanning Tree?

1501


What is the purpose of type declarations?

1077


What is the difference between declaring a variable by constant keyword and #define ing that variable?

3284


What does 3 mean in texting?

1029


Why pointers are used?

1022


What is the purpose of void in c?

992


How do you sort filenames in a directory?

1124


How can you call a function, given its name as a string?

1099


How do I get a null pointer in my programs?

1060


Differentiate abs() function from fabs() function.

961