Problem Statement
Read cost and selling prices, then print the profit and profit margin percentage.
DEMO-OOP-33 โข Object Oriented Programming
Read cost and selling prices, then print the profit and profit margin percentage.
Input is given as whitespace-separated tokens in this order:
Print the exact report in this order:
Submit runs every public testcase in this browser. Results and code never leave this device.
10.0 15.0
Profit: 5.00 Margin: 50.00
40.0 50.0
Profit: 10.00 Margin: 25.00
C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.
/workspace/question