+ 6

How do I run the program again without closing the console.

Hello, I am not sure if the title is clear enough. (I think it's pretty confusing though) So, I have a program which gets the user input( a number from 0 to 100) this being the score to a test and displays the letter grade (From A to F) according to the score. My question: What do I have to do in order for my program to ask me again for an input after it displayed the letter score for my first input? Example: My program says: "Please enter the score." User enters the score. Program says: You got an A. Congratulations. And then it ends. Now I want to write the code for it to ask me again if I want to enter another score or if I want to close the program. The code for what I already wrote is in my profile. Would be glad for some suggestion so I could try to implement the idea by myself first. Thank you!

1st Mar 2017, 10:02 AM
Elena
Elena - avatar
2 Antworten
+ 3
Hi :) Thank you.
1st Mar 2017, 10:13 AM
Elena
Elena - avatar