CJCoding With Joseph

Compute a Percentage

Declare int score = 45 and int total = 60. Compute what percentage score is of total as a double, store it in percent, then print it:

75

Expected Output:

75
Topics:
Variables
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.