BAGAIMANA CARA MENGKONVERSI SUHU DENGAN MASUKKAN :
C++:
#include<iostream>
using namespace std;
main()
{
int cel, fah, rea, kel;
start:
cout << "=============================" << endl;
cout << "KONVERSI SUHU DARI CELCIUS KE" << endl;
cout << " Fahrenheit: Reamur: Kelvin" << endl;
cout << "=============================" << endl;
cout<< "Masukkan suhu dalam Celcius : ";
cin>>cel;
cout << "=============================" << endl;
cout << "HASIL KONVERSI SUHU" << endl;
cout << "=============================" << endl;
cout << " fahrenheit : " << (((9.0/5.0)*cel) + 32)<<endl;
cout << " reamur : " << ((4.0/5.0)*cel)<<endl;
cout << " kelvin : " << (cel + 273)<<endl;
}
OUTPUT C++ DAN RAPTOR :
0 komentar:
Posting Komentar