C LANGUAGE - COVERTING DEGREE CENTIGRADE TO FAHRENHEIT
on
Get link
Facebook
X
Pinterest
Email
Other Apps
//Program to convert temperature from degree centigrade to Fahrenheit.
#include<stdio.h>
int main() {
float celsius, fahrenheit;
printf("Enter temp in Celsius : ");
scanf("%f", &celsius);
fahrenheit = (1.8 * celsius) + 32;
printf("\nTemperature in Fahrenheit : %f ", fahrenheit);
return (0);
}
Note: Click on copy button to copy the given code and you can paste it in any online compiler to see the result, IF YOU ARE A MOBILE USER THEN DOWNLOAD "CODING C"(Free App) COMPILER FROM GOOGLE PLAY STORE.