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

Write a program to reverse a given number in c language?

1103


Is null valid for pointers to functions?

1162


What is the function of this pointer?

1324


Explain what is the difference between the expression '++a' and 'a++'?

1212


Why is sizeof () an operator and not a function?

1025


what is a function method?give example?

2355


Explain the advantages of using macro in c language?

992


What is s in c?

1046


Explain the difference between ++u and u++?

1127


Explain what are preprocessor directives?

1059


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

1213


What the different types of arrays in c?

1054


What is pointer to pointer in c language?

1136


how to write a c program to print list of fruits in alpabetical order?

2289


What does %2f mean in c?

1208