Hello everyone.
I tried making a c++ program that asks the user for a positive number and returns the number’s factorial. I improved the program and used a while loop to repeat the question if the user enters a negative value. Surprisingly, even though the program works, it returns garbage values when I enter numbers greater than 16 and 0 for numbers greater than 20.
Please advise, your suggestions and recommendations are highly appreciated.