Fahrenheit to Celsius program in C using basic formula. It is a type of conversion mechanism. Sample program also available for your reference. Source code of this C tutorial is given below,
FINDING FAHRENHEIT – CELSIUS IN C
Finding Fahrenheit to Celsius program in C is used to find the temperature value in Fahrenheit to Celsius. Basic formula for this code is {c=(5*(f-32))/9}.
FAHRENHEIT TO CELSIUS PROGRAM:
Q: Write a C program for converting Fahrenheit to Celsius.
01
02
03
04
05
06
07
08
09
10
11
12
13
14
| //Header files#include<stdio.h>#include<conio.h>void main(){ //Program variables float f,c; clrscr(); //Function to clear previous function printf("ENTER THE TEMPERATURE IN FAR::--"); scanf("%f",&f); //Getting input function c=(5*(f-32))/9; //Formula to convert Fahrenheit to Celsius printf("THE TEMPERATURE IN CELSIUSIS::-- %f",c); getch();} |
Mr Jerry i m not able to use your blog-spot so please tell me how can i access this? help....
ReplyDeleteCheck my other posts for solution..
Delete