CJCoding With Joseph
15per day

Simple Calculator Input

Write 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 using fixed and setprecision(2).

Expected Output:

Addition: 15.00
Subtraction: 5.00
Multiplication: 50.00
Division: 2.00
Topics:
User Input
๐Ÿ“ฅ Auto-Input:
10\n5\n
This input is automatically fed to your program's stdin
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cout, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.