Simple Calculator Input
mediumQuestion 21Write a program that reads two float numbers from the user and displays all four basic operations:
Addition: [result] Subtraction: [result] Multiplication: [result] Division: [result]
All results should be displayed with 2 decimal places. Use %.2f format specifier.
Expected output
Addition: 15.00 Subtraction: 5.00 Multiplication: 50.00 Division: 2.00
= newline. No newline after the last line.
Hints4 available
Sign in to use hintsTopics
User Input
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (p, fori)
Your output
Run your code to see the output here...
Test cases
Run your code to see test case results.