Hey all,
I am in AP Computer Science online, so it is hard to get immediate feedback from anyone in my classroom. When they do eventually respond, it is usually too technical for me to follow.
Anyway, I am trying to calculate factorials using BlueJ. All of my factorials calculate correctly, I am just having an issue with something the instructor asked of us. She asked us to force the loop to stop when the user inputs "Calculate the factorial of 0", and not give any print.
So far I have my for loop with the correct conditions, I am just really confused as to how to make an if statement to stop the code when the input is 0. Thanks!