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
What does the c preprocessor do?
Explain what math functions are available for integers? For floating point?
What is extern storage class in c?
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)
What is 'bus error'?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
Explain the use of 'auto' keyword
What is #include stdio h?
What does int main () mean?
How will you find a duplicate number in a array without negating the nos ?
How can I read data from data files with particular formats?
Explain what is a program flowchart and explain how does it help in writing a program?
What does 2n 4c mean?
What is the use of gets and puts?
What are the different properties of variable number of arguments?