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
Why we use break in c?
What is difference between structure and union in c programming?
What are different storage class specifiers in c?
how to create duplicate link list using C???
What is a protocol in c?
What are the uses of a pointer?
What is pragma c?
4. main() { int c=- -2; printf("c=%d",c); }
Write program to remove duplicate in an array?
What is a union?
Does c have function or method?
write an algorithm to display a square matrix.
what is the role you expect in software industry?
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this
Why does not c have an exponentiation operator?