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

please help DUE TONIGHT
Am I doing this right please help
2. A car is travelling at 50 km/h. The driver sees a child run out into the road 5m ahead. She applies the break and the car stops in 5 seconds. The driver's th
a wooden block of mass 1200g, which moves on a horizontal surface, is subjected to a frictional force of 3 N. How much frictional force will act on the block if
c) Describe the genotype of the person labeled C. (1 point)
A cylinder has a volume of 45 cubic units and a radius of 3 units. What is its height?
anyone free here??????​
THINGS FALL APART Answer in paragraph form: How does the motif of power being essential to achieving personal freedom apply to women in the novel? Consider the
Based on the Institutional theory, do you consider this Artificial Intelligence artwork as art?
2. All participants in the TBI/NHTD waiver must have Independent Living Skills Training Services. O True O False