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

Where can you find a wide range of verified amis from both aws and third-party vendors?
List the steps in the communication process in order with the first step at the top of the list.
What is the purpose of prologue in sugar changed the world?
During the colonial period, commodities that could only be exported legally to britain were known as _______.
Atropine is sometimes used to dilate the pupil for an eye examination. which receptor would atropine block?
The space between the the axon of one neuron and the dendrites of anohter is called the?
The money ____ equals 1 divided by the reserve requirement. the larger the reserve requirement, the ____ the money multiplier.
Synthetic chemicals that disrupt your estrogen levels are known collectively as _____.
In order to test the hypothesis that premarital education enhances marital quality, dr. stanley should first?
Ryan receives a coupon on his iphone advising him about the location of a taco bell store. this is an example of which requirement for marketing to occur?