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

void main()
{
int i;
V:
printf("%d",i++);
goto V;
}

Is This Answer Correct ?    3 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

1199


Why is this loop always executing once?

999


How to write a code for reverse of string without using string functions?

2075


What is ctrl c called?

1002


What is function prototype in c language?

983


Compare interpreters and compilers.

1028


What is void main ()?

1012


What is class and object in c?

1047


What is c definition?

1195


What is the difference between procedural and functional programming?

1009


Write a program to print all permutations of a given string.

1128


How can I call a function with an argument list built up at run time?

1173


What is an expression?

1000


What is c language and why we use it?

1004


Write a program to know whether the input number is an armstrong number.

1073