โ Back to Printing
Question 190
Print Product with Clear Label
Print Product with Clear Label
Create two integer variables:price = 12andquantity = 4. Then calculate the product in a third variable and print exactly: Total cost: 48 UseSystem.out.println()for output.
Expected Output:
Total cost: 48
Topics:
Printing
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (sysout, psvm, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.