-->

Friday, 10 March 2017

Convert Celsius to Fahrenheit Program in C

Fahrenheit and Celsius are two unit for measure temperature. We have standard formula to Convert Celsius to Fahrenheit using this formula you can change temperature Fahrenheit to Celsius.

Formula

 f = c * 9/5 + 32;
 

C Program to Convert Celsius to Fahrenheit

#include<stdio.h>
#include<conio.h>

void main()
{
 float cel, far;
 clrscr();
 printf("Enter temp. in Celsius: ");
 scanf("%f",&cel);
 far = cel * 9/5 + 32;
 printf("Temp. in Fahrenheit: %f",far);
 getch();
}

Output

Enter temp. in Celsius: 36
Temp. in Fahrenheit: 96.000

keep calm and say bujuku bujuku.

0 comments:

Post a Comment

Start Work With Me

Contact Us
KUTTY SELVA
+91 7708139984
Madurai,Tamilnadu