Write a C program to print 1 2 3 ... 100 without using
loops?
Answer Posted / vikash kumar dixit
#include<stdio.h>
#include<conio.h>
void main()
{
int i,n;
A:
printf("%d",i);
i++;
switch(n)
{
case 100:
break();
default:goto A;
}
getch();
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How can I direct output to the printer?
What is merge sort in c?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
Can a pointer be static?
What are identifiers in c?
What is the scope of local variable in c?
How can I dynamically allocate arrays?
Which node is more powerful and can handle local information processing or graphics processing?
What are the data types present in c?
What is a pointer and how it is initialized?
What are identifiers c?
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
Why we use break in c?
The __________ attribute is used to announce variables based on definitions of columns in a table?
Explain what math functions are available for integers? For floating point?