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

Complete the following nuclear equation
If a country is attacked by a NATO country, would NATO try to stop them?
Please help if you can!!!
Traffic rules are life saving tools. Explain.
The sides of a scalene triangle have measures that are consecutive even integers. If the perimeter of this triangle is 60 inches, what is the length of the long
I need help with solving this problem
Multiply or divide.write the productor quotient in simplest form. 1 4/9 (-2 4/7
What is the image point of (1,8) after a translation left 2 units and down 1 unit?
Functionalism says your mind is like a computer. What we call "mind" is the connection between sensory inputs and behavioral outputs. True False
Suppose you walk 16 m straight east and then 22 m straight south. At what angle, in degrees South of East, is a line connecting your starting point to your fina