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 / manish verma
I guess, if it is not asking for any kind of loop (for /
while) then one can use recursive functions to achieve this.
| Is This Answer Correct ? | 63 Yes | 9 No |
Post New Answer View All Answers
Explain how can you be sure that a program follows the ansi c standard?
Explain what are multidimensional arrays?
Write a program to use switch statement.
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
What is self-referential structure in c programming?
Are the outer parentheses in return statements really optional?
Explain what is the difference between functions abs() and fabs()?
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell
What are reserved words?
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
How can I avoid the abort, retry, fail messages?
Explain continue keyword in c
What is #line?
Can I initialize unions?
What are the different types of data structures in c?