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 / gandhi priyank

goto statment is also right because goto statement is not a
loop
e.g.
void main()
{
j:
printf("type your text here");

goto j;
}

Is This Answer Correct ?    10 Yes 42 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a node in c?

918


In C language what is a 'dangling pointer'?

1063


What is the use of void pointer and null pointer in c language?

1070


Where static variables are stored in c?

1041


FILE PROGRAMMING

2179


Which driver is a pure java driver

1531


using for loop sum 2 number of any 4 digit number in c language

2258


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

2578


what is a constant pointer in C

1095


What are the uses of a pointer?

1100


What are c preprocessors?

1124


Why do we write return 0 in c?

1005


Explain what are the __date__ and __time__ preprocessor commands?

1073


what do you mean by enumeration constant?

957


What is a lvalue

1039