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


Please Help Members By Posting Answers For Below Questions

What is a method in c?

622


Is file a keyword in c?

496


What is an operator?

656


What do you mean by invalid pointer arithmetic?

637


What is a newline escape sequence?

665






How can you find the exact size of a data type in c?

597


I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.

1488


What is a union?

607


Explain how do you print an address?

652


Linked lists -- can you tell me how to check whether a linked list is circular?

643


What is character constants?

710


How to compare array with pointer in c?

615


Explain what is the benefit of using #define to declare a constant?

604


I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.

1736


What does %p mean?

588