Program perhitungan Suhu Menggunakan Dev C++
Program perhitungan Suhu Menggunakan Dev C++ :
#include <iostream>
using namespace std;
int main()
{
float C,F,K,R;
cout<<"program konversi suhu"<<endl;
cout<<"ibmb.ac.id"<<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<<"ibmb.ac.id"<<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