Write a C program to print 1 2 3 ... 100 without using
loops?
Answer Posted / harsha
#include<stdio.h>
int i=0;
void main()
{
if(i==0)
clrscr();
if(i<100) {
printf("%d \t",++i);
main(); }
else {
getch();
exit(0); }
}
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What should malloc(0) do?
What is cohesion and coupling in c?
How can I call fortran?
What should malloc() do?
What does *p++ do?
What is the use of header?
Why does not c have an exponentiation operator?
What are the features of c languages?
Explain the binary height balanced tree?
Why does the call char scanf work?
#include
What is hashing in c?
What does & mean in scanf?
Can you please explain the difference between syntax vs logical error?
How do we print only part of a string in c?