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 / balaji.k

#include<stdio.h>
#include<conio.h>
void main()
{
clescr();
int i,chl,start;
printf("enter the number from 1 to 100\n");
scanf("%d",ch);
else
go to start
start=1 to 100;
else
go end
exit(0);
}

Is This Answer Correct ?    3 Yes 37 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we use break in c?

560


What is difference between structure and union in c programming?

579


What are different storage class specifiers in c?

632


how to create duplicate link list using C???

2085


What is a protocol in c?

569






What are the uses of a pointer?

693


What is pragma c?

629


4. main() { int c=- -2; printf("c=%d",c); }

1375


Write program to remove duplicate in an array?

606


What is a union?

619


Does c have function or method?

599


write an algorithm to display a square matrix.

2236


what is the role you expect in software industry?

1665


The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this

2951


Why does not c have an exponentiation operator?

635