In this example, We will learn how to convert Celsius into Fahrenheit. This we use following formula
C Program to Convert Celsius to Fahrenheit
#include<stdio.h>
void main()
{
float c,f;
printf("Enter temperature in Celsius : ");
scanf("%f",&c);
f=(c * 1.8)+32;
printf("%.2f degree Celsius is = %.2f degree Fahrenheit",c,f);
}
Output
Enter temperature in Celsius : 100
100.00 degree Celsius is = 212.00 degree Fahrenheit
Introduction of C and Hello World Program
C program to Addition of two numbers
C program to find Area of Triangle
C program to find Area of Circle
C program to find Area of Rectangle
C program to Calculate Simple Interest
C program to Calculate Compound Interest
C program to Swap two Numbers
C program to Convert Fahrenheit to Celsius