CJCoding With Joseph
15free / daySign inCreate account

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
Topics:
User Input
📥 Auto-Input:
45\n50\n
This input is automatically fed to your program's stdin
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.