How to convert Centigrade to Fahrenheit using C language.
#include <stdio.h>
#include <stdlib.h>
// far = farenheit,Cel = centigrade//
int main(){
float far,cel;
printf("Enter the temparature : \n");
scanf("%f",&cel);
far = (9*cel + 160) / 5;
printf("Conversion Centigrade to Farenhite : %.2f",far);
return 0;
}
Comments
Post a Comment