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 remove the trailing spaces from a string?

618


Why is sprintf unsafe?

621


How can you tell whether a program was compiled using c versus c++?

622


What does int main () mean?

554


write a program to create a sparse matrix using dynamic memory allocation.

4375






what is the function of pragma directive in c?

630


i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

1528


What is typeof in c?

611


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

1532


Which are low level languages?

640


Explain a file operation in C with an example.

665


Explain main function in c?

630


How can I call a function with an argument list built up at run time?

643


A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none

735


What is the value of h?

596