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
Write a program to reverse a given number in c language?
Is null valid for pointers to functions?
What is the function of this pointer?
Explain what is the difference between the expression '++a' and 'a++'?
Why is sizeof () an operator and not a function?
what is a function method?give example?
Explain the advantages of using macro in c language?
What is s in c?
Explain the difference between ++u and u++?
Explain what are preprocessor directives?
What does the && operator do in a program code?
What the different types of arrays in c?
What is pointer to pointer in c language?
how to write a c program to print list of fruits in alpabetical order?
What does %2f mean in c?