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


Please Help Members By Posting Answers For Below Questions

What does the c preprocessor do?

843


Explain what math functions are available for integers? For floating point?

841


What is extern storage class in c?

705


write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)

1866


What is 'bus error'?

856


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

818


Explain the use of 'auto' keyword

872


What is #include stdio h?

898


What does int main () mean?

757


How will you find a duplicate number in a array without negating the nos ?

1829


How can I read data from data files with particular formats?

807


Explain what is a program flowchart and explain how does it help in writing a program?

857


What does 2n 4c mean?

968


What is the use of gets and puts?

771


What are the different properties of variable number of arguments?

895