Write a program to take a depth (in kilometers) inside the earth as input data. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write a program to take a depth (in kilometers) inside the earth as input data.

i dont even understand what i need to do here. all i know is im suppose to write it with #stdio.h please give me some insight. Write a program to take a depth (in kilometers) inside the earth as input data; compute and display the temperature at this depth in degrees Celsius and degrees Fahrenheit.   The relevant formulas are     Celsius = 10 (depth) + 20    (Celsius temperature at depth in km)     Fahrenheit = 1.8 (Celsius) + 32

23rd Sep 2016, 4:17 AM
Ha Nguyen
Ha Nguyen - avatar
1 Answer
+ 1
Take a look at cin and cout. Then use variables for Celsius, Fahrenheit, and depth to do math that is given to you.
26th Sep 2016, 10:03 PM
Ryne
Ryne - avatar