← Back to User Input
Question 182
Percentage Score
Percentage Score
Read a score and then the total it was out of, both whole numbers, and print the score as a percentage with one decimal and a percent sign right after it, in the form Score: <value>%. Divide the score by the total, then multiply by 100. Input: two lines, one integer each, no prompts; the total is never zero.
Expected Output:
Score: 90.0%= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
User Input
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.