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
How can I prevent another program from modifying part of a file that I am modifying?
How can I write a function that takes a format string and a variable number of arguments?
What is indirection in c?
Explain what happens if you free a pointer twice?
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
What are the c keywords?
Differentiate fundamental data types and derived data types in C.
What is the code in while loop that returns the output of given code?
What is sizeof c?
What is an operator?
What is the difference between c &c++?
Explain high-order bytes.
What is the difference between if else and switchstatement
Explain how do you view the path?
What is action and transformation in spark?