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

How can I prevent another program from modifying part of a file that I am modifying?

1051


How can I write a function that takes a format string and a variable number of arguments?

1051


What is indirection in c?

1065


Explain what happens if you free a pointer twice?

1074


Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80

3123


What are the c keywords?

1203


Differentiate fundamental data types and derived data types in C.

1030


What is the code in while loop that returns the output of given code?

1978


What is sizeof c?

1070


What is an operator?

1069


What is the difference between c &c++?

1146


Explain high-order bytes.

1107


What is the difference between if else and switchstatement

1926


Explain how do you view the path?

1164


What is action and transformation in spark?

1159