โ Back to Variables
Question 267
Compute a Percentage
Compute a Percentage
Declareint score = 45andint total = 60. Compute what percentagescoreis oftotalas adouble, store it inpercent, 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.