Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
419 B
2
Indexable
Never
#include <iostream>

using namespace std;

int main()
{

 float celcius, fahrenheit;

 cout << "Masukkan suhu celcius : ";
 cin >> celcius;
 fahrenheit = 9/5 * celcius + 32;
 cout << "Suhu dalam fahrenheit : " << fahrenheit << endl;


 cout << "Masukkan suhu Farenheit : ";
 cin >> fahrenheit;
 celcius = (9/5) * (fahrenheit - 32);
 cout << "Suhu dalam Celcius : " << celcius << endl;
 return 0;
}