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 / solairaja
void main()
{
int i;
V:
printf("%d",i++);
goto V;
}
| Is This Answer Correct ? | 3 Yes | 17 No |
Post New Answer View All Answers
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
Why is this loop always executing once?
How to write a code for reverse of string without using string functions?
What is ctrl c called?
What is function prototype in c language?
Compare interpreters and compilers.
What is void main ()?
What is class and object in c?
What is c definition?
What is the difference between procedural and functional programming?
Write a program to print all permutations of a given string.
How can I call a function with an argument list built up at run time?
What is an expression?
What is c language and why we use it?
Write a program to know whether the input number is an armstrong number.