28. program menghitung suhu dengan dev c++
#include <iostream>
using namespace std;
int main()
{
float C,F,K,R;
cout<<"program konversi suhu"<<endl;
cout<<"eka.com"<<endl<<endl;
cout<<"masukkan nilai celciusnya = ";
cin>>C;
F=C*1.8 + 32;
K=C+273.15;
R=C*0.8;
cout<<"nilai Fahrenheit = "<<F<<endl<<"nilai Kelvin = "<<K<<endl<<"nilai Reamur = "<<R;
return 0;
}
#include <iostream>
using namespace std;
int main()
{
float C,F,K,R;
cout<<"program konversi suhu"<<endl;
cout<<"eka.com"<<endl<<endl;
cout<<"masukkan nilai celciusnya = ";
cin>>C;
F=C*1.8 + 32;
K=C+273.15;
R=C*0.8;
cout<<"nilai Fahrenheit = "<<F<<endl<<"nilai Kelvin = "<<K<<endl<<"nilai Reamur = "<<R;
return 0;
}
Komentar
Posting Komentar