Write a C program to print 1 2 3 ... 100 without using
loops?
Answer Posted / sagar
we can also create such a program without using loops and if
statement too ...
void main()
{
int i,n;
clrscr();
A:
printf("%d",i);
n=i++;
switch(n)
{
case 100: break;
default : goto A;
}
getch();
}
| Is This Answer Correct ? | 9 Yes | 7 No |
Post New Answer View All Answers
what is ur strangth & weekness
What is logical error?
What is %d used for?
Without Computer networks, Computers will be half the use. Comment.
What are the properties of union in c?
What are disadvantages of C language.
Which of these functions is safer to use : fgets(), gets()? Why?
What are the disadvantages of external storage class?
cavium networks written test pattern ..
Difference between macros and inline functions? Can a function be forced as inline?
What is getche() function?
What does the && operator do in a program code?
Describe explain how arrays can be passed to a user defined function
What is the collection of communication lines and routers called?
What are pointers?