XxLydiaxXwolf619 XxLydiaxXwolf619
  • 21-08-2019
  • Computers and Technology
contestada

Write a program in c language which takes 5 inputs from the user. The inputs are
temperature in Celsius scale. The program computes the
corresponding Fahrenheit scale and displays as two columns

Respuesta :

tonb
tonb tonb
  • 21-08-2019

double CelciusToFahrenheit(double celcius)  

{

return celcius * 1.8 + 32;

}

int main()

{

double celcius[5];

int i;

for (i = 0; i < 5; i++)

{

 printf("Enter temperature %d in Celcius: ", i+1);

 scanf_s("%lf", &celcius[i]);

}

for (i = 0; i < 5; i++)

{

 printf("%2.1lf\t%2.1lf\n", celcius[i], CelciusToFahrenheit(celcius[i]));

}

}

Answer Link

Otras preguntas

HELP PLEASE!! I don't get it!!!!!!
A diagnosis of Hodgkin's disease is suspected in a 12-year-old child. Several diagnostic studies are performed to determine the presence of this disease. Which
Simplify the square root of36 a^10 b2
Find the value of x in each of the following exercises:
Mr. mahatma Gandhi an essay in English 200 words
Please! help and tell me the answers, or help me figure out these answers for 20 points? please! And please help me. Can anybody help me?
whats the main function of a signal word
The length and width of a rectangular yard are 11 meters and 5 meters respectively. If each dimension were reduced by x meters to make the ratio of length to wi
A candy store called "Sugar" built a giant hollow sugar cube out of wood to hang above the entrance to their store. It took 13.5m squared of material to build t
Use the quotation and your knowledge of social studies to answer the question. “The closeness of the place, and the heat of the climate, added to the number in