Doing a project for AP Computer science, and I still haven't managed to figure out how to do this part:
The program is supposed to ask the user for 5 test score inputs and then the code will "curve" the smallest value entered by taking the square root of the score and adding the integer value of the square root to the original score. I have figured out how to do the math and everything else, but I just have no clue how to find the smallest score entered. The teacher specifically said no arrays or collections.
My int variables are score1, score2, score3, score4, and score5. Say the user entered 75 for score1, 32 for score2, 42 for score3, 99 for score4, and 100 for score 5. How would I make it do the curve function (that I've already made) for score2 specifically, since it's the minimum value. I've already set up the scanners and everything, I just don't know how to get the minimum (and maximum) values.
Thank you!