Program To Convert Temperature From Degree Centigrade To Fahrenheit And Fahrenheit To Degree

Program To Convert Temperature From Degree Centigrade To Fahrenheit And Fahrenheit To DegreeAccessing 2-D Array Elements In C From User

#include<stdio.h>

int main()
{

float celsius, fahrenheit;

 printf("Enter temp in Celsius :\n");
 scanf("%f", &celsius);  //input from user

 fahrenheit = (1.8 * celsius) + 32;
 printf("Temperature in Fahrenheit : %f\n ", fahrenheit);  //Print Output On screen


  printf("Enter temp in Fahrenheit :\n");
 scanf("%f", &celsius);  //input from user

 celsius = (.55 * (fahrenheit-32);
 printf("Temperature in Celsius : %f\n ", celsius);  //Print Output On screen

}

Related Posts