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

How can a program be made to print the name of a source file where an error occurs?

735


in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.

7413


What are the primitive data types in c?

582


write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

3192


What is extern c used for?

573






What is the best way to store flag values in a program?

583


Why dont c comments nest?

625


Write a program to print factorial of given number without using recursion?

573


Multiply an Integer Number by 2 Without Using Multiplication Operator

326


find out largest elemant of diagonalmatrix

1653


Explain is it valid to address one element beyond the end of an array?

743


How do you construct an increment statement or decrement statement in C?

747


What is pointer and structure in c?

576


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

917


any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above

636