Temperature coverter in fahrenheit into celcious
code start from_____________________________________________________________________#include<iostream>
using namespace std;int main(){ float temp_fahren, temp_celsius; cout << "Enter the temperature in Fahrenheit:"; cin >> temp_fahren; temp_celsius = (temp_fahren - 32) * 5 / 9; cout << temp_fahren << "F = " << temp_celsius << endl; temp_fahren = (temp_celsius * 9 / 5) + 32; cout << temp_celsius << "F = " << temp_fahren << endl;
system("pause");}
code start from_____________________________________________________________________#include<iostream>using namespace std;int main(){ float temp_fahren, temp_celsius; cout << "Enter the temperature in Fahrenheit:"; cin >> temp_fahren; temp_celsius = (temp_fahren - 32) * 5 / 9; cout << temp_fahren << "F = " << temp_celsius << endl; temp_fahren = (temp_celsius * 9 / 5) + 32; cout << temp_celsius << "F = " << temp_fahren << endl;
system("pause");}
0 Comments