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

What are some things I should study for SAT?
this maths question i don’t really understand
what possible issues can you Foresee these technologies?​
show the solution for 3x-2 ≥ x-1
Which of the following is not true during crossing over?
Correct the word in paranthases . Right now we (have) a heat wave. ​
Article on the solution to End Sars protest with respect to the values of the citizens
Which of these is a statement of fact? A. The U.S.'s use of the islands after guano fever died down shows how incredible the country is at adapting to new situa
4a-b=10 . 2a + 3b=12​
A pack of $2.99 crayons is on sale 50% off what is the discount?