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

Which sentence shows correct capitalization? Mr. Brown always makes his students read both the Bill Of Rights and the Constitution of the United States. Mr. Bro
The first and most important step in finding an appropriate solution is to ____________.
Solve x^2 + 8x + 8 = 0 by completing the square. Which equation is used in the process? (x + 4)^2 = 0 (x + 4)^2 = 4 (x + 4)^2 = 8
What is the slope of the line that passes through the points (4, 10) and (6, 14)? A. 02 B. 01/2 C. 1/2 D. 2
an image of a snowflake is 1.8 centimeters wide. If the actual snowflake is 1/8 the size of the image, what is the width of the actual snowflake
what is diction?...........................................
I don't think this is a good question,but Can you give me a good question about The Nervous System.??plzzz
Asexual reproduction always yields offspring that are identical to their parent. True False
Nate gave the clerk $20 for 2 cassettes. His change was $2.04. What was the cost of each cassette?
When do you need to use two number lines to compare two fractions