#include <iostream>
using namespace std;
int main(int argc, char** argv) {
int cel,fah,rea,kel;
start:
cout<<"================================"<<endl;
cout<<"|konversi suhu dari celcius ke |"<<endl;
cout<<"|fahrenheit:reamur:kelvin |"<<endl;
cout<<"================================"<<"\n"<<endl;
cout<<"masukan suhu dalam celcius : "; cin>>cel;
cout<<"\n";
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<endl;
cout<<"hasil konversi suhu "<<endl;
cout<<"farenheit : "<<(((9.0/5.0)*cel)+32)<<endl;
cout<<"reamur : "<<((4.0/5)*cel)<<endl;
cout<<"kelvin : "<<(cel+273)<<"\n"<<endl;
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<endl;
return 0;
}KONVEERSI SUHU
Tidak ada komentar:
Posting Komentar