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 / pur
main()
{
int i =100;
start:
if( i == 0)
goto end;
printf(" %d ",i)
i--;
goto start;
end:
printf(" end of the program");
}
| Is This Answer Correct ? | 20 Yes | 47 No |
Post New Answer View All Answers
What are loops in c?
What is the purpose of sprintf() function?
What is the Purpose of 'extern' keyword in a function declaration?
What is calloc() function?
What is the difference between c &c++?
What is property type c?
What are the 5 elements of structure?
How are variables declared in c?
how to build a exercise findig min number of e heap with list imlemented?
Is void a keyword in c?
What is the difference between local variable and global variable in c?
What does malloc () calloc () realloc () free () do?
What does the && operator do in a program code?
What is the deal on sprintf_s return value?
Which is better between malloc and calloc?