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
Can we access array using pointer in c language?
Why do we use static in c?
Explain what is the benefit of using const for declaring constants?
What is the difference between text and binary modes?
code for replace tabs with equivalent number of blanks
What is s or c?
What are structure members?
How do c compilers work?
What is the best style for code layout in c?
What is variable in c example?
Why does this code crash?
Is c# a good language?
What is an identifier?
what is the height of tree if leaf node is at level 3. please explain
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures