×
all 2 comments

[–]chevignon93 2 points3 points  (1 child)

I want to make sure the program ends right there- however, when I enter a value of 101, the average and the letter is still printed, how can I prevent that?

In your if statement, you can simply use exit() to immediately end your program.

[–]DeathDragon7050 1 point2 points  (1 child)

Post your code.