write a program to convert temperature Celsius to Fahrenheit and vice versa
- #include<stdio.h>
- main ()
- {
- float temp_c, temp_f;
- printf ("Enter the value of Temperature in Celcius: ");
- scanf ("%f", &temp_c);
- temp_f = (1.8 * temp_c) + 32;
- printf ("The value of Temperature in Fahreinheit is: %f", temp_f);
- }
Comments
Post a Comment