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

How many paths are there from C to E? Оeri В 12 8 О 10 O 14
Which equation is equivalent to 24% = 82-3? 0 24x _ 22x-3 O 24% = 22%-6 O 24% = 23x-3 O 24% – 23%-9
Mix a solution that is 30% alcohol with a solution that is 80% alcohol to make 575 mL of a solution that is 60% alcohol. How much of each solution should you us
The distance travelled varies directly with time. Anthony ran 49.6 metres in 8 seconds. Write an equation for this relationship. Use let statements to define yo
What Does Benvolio say about the weather in the beginning of Act III in Romeo and Juliet?
Be mindful of the affect you're actions have on those around you. Find the error
add:7ab,8ab,-10ab,-3ab​
Compute break-even point The Palmer Acres Inn is trying to determine its break-even point during its off-peak season. The inn has 50 rooms that it rents at $60
Please help, if you can’t answer all just answer one
solve the equation[tex]log10 \: ( {x}^{2} - 3x + 12) \: = 2[/tex]​