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 preprocessor directives?
Where we use clrscr in c?
Are enumerations really portable?
Is file a keyword in c?
Describe the header file and its usage in c programming?
What is the difference between malloc() and calloc() function in c language?
What is the explanation for prototype function in c?
What is the use of sizeof?
4. main() { int c=- -2; printf("c=%d",c); }
What is call by value in c?
How can you access memory located at a certain address?
What’s a signal? Explain what do I use signals for?
Explain the difference between #include "..." And #include <...> In c?
Explain how can type-insensitive macros be created?
Is c high or low level?