Close sidebar

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?

Your Answer

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

टिप्पणी
मॉक परीक्षण अभ्यास के लिए
c programming