My Subject Blog

C Program Celsius to Fahrenheit

/* Write a Program to convert the Celsius to Fahrenheit. F=(C*1.8)+32 */

#include <stdio.h>

int main(void) {
float F,C;
printf("Enter Temprature in Celsius " );
scanf("%f",&C);
F = (C * 1.8) + 32;
printf("\n %.2f Celsius = %.2f Fahrenheit",C, F);
return 0;
}

Comments

Most Visited Post

C Program to Find Largest Odd Number from Array

Followers