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 is the factored form of a2 – 121? (a – 121)(a – 1) (a – 11)(a + 11) (a + 11)(a + 11) (a – 121)(a + 1)
The way a text is built, arranged, and organized is referred to as
A credit which requires the cardholder to pay a sum of money equal to the credit limit is called a a) debit card b) unsecured card c) blocked card d) prepaid ca
i have developed knee pain from running everyday,so after i rest im going to try a new workout for the next few weeks. this statement refers to which of the SPO
Factor each expression. Problem: r^2 +12r +27 Answer: (r + 3) (r + 9)
what is the subject and theme of the exercise?
kahulugan ng pangingilo sa nerbiyos
Choose the correct simplification of (5x2y3z4)(6x3y4z2). 30x5y7z6 30x6y12z8 11x5y7z6 11x6y12z8
In Mindy’s creative writing class, she learned to use the words “like” or “as” to make a direct comparison between two unlike ideas. Which figure of speech did
Stress is a factor that can influence the development and growth of cancer. true or false?