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?
- 5105 दृश्य
- 3 उत्तर
Your Answer
the print_numbers function calls itself with n - 1 until n reaches 0. When n is greater than 0, it prints the geometry dash lite after the recursive call, which ensures the numbers are printed in ascending order from 1 to 100.
-
- 13 जून
- 0 टिप्पणी
टिप्पणी
मॉक परीक्षण अभ्यास के लिए
c programming