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
  • 12 Dec
  • 3732 Views
  • 2 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