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 / kt vikram

We are using 'goto' statement to print the numbers without using
if,for,while etc.

Is This Answer Correct ?    38 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I trap or ignore keyboard interrupts like control-c?

600


Is null a keyword in c?

724


An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode

595


Explain modulus operator.

580


What is table lookup in c?

616






What standard functions are available to manipulate strings?

550


What is 02d in c?

619


What is a lvalue

645


Which is best book for data structures in c?

582


Why can’t we compare structures?

797


How do I use strcmp?

626


Why C language is a procedural language?

608


Explain why c is faster than c++?

560


What is the translation phases used in c language?

616


write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

2254