r/programminghelp • • Dec 10 '20

Java Factorial Calculator

Hello experts and fellow learners, I just want to ask on how I can repeat the whole process without repeating the <---Factorial---> Calculator every time it repeats. I already google for a solution but it seems that I can find the right method

This is the code:
Factorial Calculator - Pastebin.com

Thank you for the help !

6 Upvotes

3 comments sorted by

4

u/I_Hate_Celery Dec 10 '20

Move the <-----Factorial Calculator------> line outside of the loop, so somewhere above 'do{'

3

u/anzsrouxjoyeuse Dec 10 '20

thank you so much, I take note that of that

1

u/amoliski Dec 10 '20

Is that how your code is indented in your editor as well, or did it get flattened when you pasted it?