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


Please Help Members By Posting Answers For Below Questions

Describe newline escape sequence with a sample program?

661


Explain indirection?

651


What does emoji p mean?

610


Suggesting that there can be 62 seconds in a minute?

603


Why shouldn’t I start variable names with underscores?

629






I have a varargs function which accepts a float parameter?

583


What is define c?

578


Is the exit() function same as the return statement? Explain.

668


What is clrscr in c?

682


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

3130


What is define directive?

644


Whats s or c mean?

597


What is function what are the types of function?

563


Tell me what is the purpose of 'register' keyword in c language?

623


What is pivot in c?

570