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 / harpreet kaur
we can create our own header file having a function to
print nos with loop and then use that header file in new
prog with the functoin defined in it.
| Is This Answer Correct ? | 30 Yes | 37 No |
Post New Answer View All Answers
What is break in c?
When should a type cast be used?
What is #pragma statements?
What is the purpose of realloc()?
Explain what is gets() function?
What is typedef example?
What are global variables and how do you declare them?
Which is better pointer or array?
what is the difference between class and unio?
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
Where is c used?
Where static variables are stored in c?
What is scope rule of function in c?
Why is event driven programming or procedural programming, better within specific scenario?
Why can't I perform arithmetic on a void* pointer?