##include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
float cel,rea,fah,kel;
cout<<"konvensi suhu\n";
cout<<"masukan suhu celcius :";cin>>cel;
fah=(9/5)*cel+32;
cout<<"fahrenheit :"<<fah<<"farenheit"<<endl;
rea=cel*4/5;
cout<<"Reamur : "<<rea<<"reamur"<<endl;
kel=cel+273,15;
cout<<"kelvin : "<<kel<<"kelvin"<<endl;
return 0;
}
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
float cel,rea,fah,kel;
cout<<"konvensi suhu\n";
cout<<"masukan suhu celcius :";cin>>cel;
fah=(9/5)*cel+32;
cout<<"fahrenheit :"<<fah<<"farenheit"<<endl;
rea=cel*4/5;
cout<<"Reamur : "<<rea<<"reamur"<<endl;
kel=cel+273,15;
cout<<"kelvin : "<<kel<<"kelvin"<<endl;
return 0;
}
Tidak ada komentar:
Posting Komentar