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 is the diffrenet bettwen HTTP and internet protocol

1392


Why dont c comments nest?

621


What is null in c?

600


What is adt in c programming?

611


Explain what are linked list?

626






When is a “switch” statement preferable over an “if” statement?

650


What are the back slash character constants or escape sequence charactersavailable in c?

686


write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.

14964


Is it valid to address one element beyond the end of an array?

675


Explain Function Pointer?

681


What does 1f stand for?

614


PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

1714


Why we use void main in c?

597


Explain can the sizeof operator be used to tell the size of an array passed to a function?

597


What are data types in c language?

586