Write a C program to print 1 2 3 ... 100 without using
loops?
Answer Posted / sutanu
void main ()
{
static int i;
if (i <= 100)
{
printf ("%d\n", i);
i++;
main ();
}
}
| Is This Answer Correct ? | 53 Yes | 15 No |
Post New Answer View All Answers
How can variables be characterized?
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
Why is c so popular?
What does 3 periods mean in texting?
What language is c written?
What is cohesion and coupling in c?
Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.
What are qualifiers and modifiers c?
Without Computer networks, Computers will be half the use. Comment.
What is a function simple definition?
Why is void main used?
Explain what are the different file extensions involved when programming in c?
Explain the use of bit fieild.
What is the best style for code layout in c?
What is function what are the types of function?