بيان المشكلة
Write a program that calculates the base-10 logarithm of a number using log10.
DEMO-C-32 • Programming in C
Write a program that calculates the base-10 logarithm of a number using log10.
A single positive floating-point number.
The base-10 logarithm formatted to 2 decimal places.
Submit runs every public testcase in this browser. Results and code never leave this device.
10.0
1.00
1.0
0.00
0.1
-1.00
2.0
0.30
C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.
/workspace/question