How will you print numbers from 1 to 100 without using loop?

We cannot use any loop, for, do while, while. Print without the use of loop?

  • Aditi
  • 13 Jun
  • 5131 Views
  • 3 Answers
Your Answer

Use recursion... void printno(int n) { if(n>0) printno(n-1); printf("%d",n); }

1
c programming
Practice Mock Test
c programming