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 kind of strategy does jeffrey selingo uses for the audience
Why will environmental issues continue to be of concern in Atlanta? A . The Democratic Party has not addressed the environmental concerns. B. Protest groups hav
In last night's basketball game, Jay made 8 of 12 free throws. About what percent of free throws did Jay make?
Una carga esta a una distancia de 3.5 m de otra carga, las cuales tienen cargas de: q1 = 9.4x10-6 C y q2 = -7.6x10-3 C. Determine la magnitud de la fuerza con l
A triangle has a hypotenuse of length 25 and one leg of length 24. What is the tangent of the larger acute angle of the triangle?
In Line 5 of his poem "Chicago," Carl Sandburg uses which poetic device to describe Chicago?
full free studentship application
What led to increased Jewish immigration to Palestine in the 1930s? pls give a simple 3 sentence or so explanation :)
Write the algebraic expression: 4p times the sum of 7 and 5p​
In ∆PQR, ∠P = 90degrees , PQ= 12 cm, PR=16cm. Find ∠Q