fORMULA TO FIND CELSIUS TO fahrenheit .
(32°F − 32) × 5/9 = 0°C
#include<iostream>
using namespace std;
void main() {
float C, F;
cout << "Enter temperature in celsius" << endl;
cin >> C;
F = (C * 9 / 5) + 32;
cout << "Temperature in fahrenheit is: " << F << endl;
}
(defun farhcelconv()
(format t "Enter degrees in fahrenheit ")
(Let (f)
(setq f (read f))
(APPEND '(celsius is)(*(- f 32)(/ 5 9))')
)
)
//Create a program that will be able to accept
//a Temperature in Fahrenheit and Print its Equivalent Temperature in celcius.
//The Formula for Converting Fahrenheit to Celcius is C=5/9(F-32)
//Where C is Equivalent to Celcius and F is for Fahrenheit.
#include<stdio.h>
main()
{
float c,f;
printf("Input The Fahrenheit: ");
scanf("%f",&f);
c=((f-32)*5)/9;
printf("The Converted Celcius is: %f",c);
}