Problem Statement
Calculate the total surface area of a cone given radius r and height h.
Formula: PI * r * (r + sqrt(h^2 + r^2)).
DEMO-C-32 โข Programming in C
Calculate the total surface area of a cone given radius r and height h.
Formula: PI * r * (r + sqrt(h^2 + r^2)).
r and h.Surface area formatted to 2 decimal places.
Submit runs every public testcase in this browser. Results and code never leave this device.
3.0 4.0
75.40
5.0 12.0
282.74
2.0 5.0
46.40
0.5 1.0
2.54
C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.
/workspace/question