+ 1
How do I print A number for the same number of times with while loop inside a function?
I want to print the entered number, the same number of times using a while loop. The code has to read a value from user and then pass it to a function which then does the printing work. And also how can I find the factorial of the number using the same code structure? https://code.sololearn.com/c7ZyVYW9KlZo/?ref=app
4 Answers
+ 2
https://code.sololearn.com/cj0QhnpBva63/?ref=app
Check this.
+ 3
đ Alex Tusinean đ Thanks a ton. đ
+ 3
đ Alex Tusinean đ you're awesome đ
+ 2
SaFFire1 you're welcome :)
Check again the code, I made it work for negative numbers too.