Sep 9, 2024
temperature_conversion.c
temperature_conversion.c
Comments:
// Input temperature in degree Celsius and convert to degree Fahrenheit
Header File:
Main Function:
main()
function.Variable Declaration:
temp
of type float
to store the temperature in Celsius.Input:
printf
to prompt the user to input temperature in Celsius.scanf
to read the input value.%f
format specifier for floating-point numbers.temp
using address-of operator &temp
.Output:
printf
with a message and %f
to show the computed value.