selamat datang gan. semoga bermanfaat.
ini script programnya gan.
ini script programnya gan.
#include <iostream>
using namespace std;
main()
{
float Celcius, Kelvin, Reamur, Fahrenheit;
cout<<"==============================\n";
cout<<"KONVERSI SUHU DARI CELCIUS KE\n";
cout<<" Fahrenheit | Reamur | Kelvin\n";
cout<<"==============================\n";
cout<<"Masukan suhu dalam celcius :";
cin>>Celcius;
Fahrenheit=9*Celcius/5+32;
Reamur=4*Celcius/5;
Kelvin=273+Celcius;
cout<<"==============================\n";
cout<<" HASIL KONVERSI\n";
cout<<"==============================\n";
cout<<"Fahrenheit :"<<Fahrenheit<<" oC\n";
cout<<"Reamur :"<<Reamur<<" oC\n";
cout<<"Kelvin :"<<Kelvin<<" oC\n";
cout<<"==============================\n";
cout<<endl;
}
using namespace std;
main()
{
float Celcius, Kelvin, Reamur, Fahrenheit;
cout<<"==============================\n";
cout<<"KONVERSI SUHU DARI CELCIUS KE\n";
cout<<" Fahrenheit | Reamur | Kelvin\n";
cout<<"==============================\n";
cout<<"Masukan suhu dalam celcius :";
cin>>Celcius;
Fahrenheit=9*Celcius/5+32;
Reamur=4*Celcius/5;
Kelvin=273+Celcius;
cout<<"==============================\n";
cout<<" HASIL KONVERSI\n";
cout<<"==============================\n";
cout<<"Fahrenheit :"<<Fahrenheit<<" oC\n";
cout<<"Reamur :"<<Reamur<<" oC\n";
cout<<"Kelvin :"<<Kelvin<<" oC\n";
cout<<"==============================\n";
cout<<endl;
}
Komentar
Posting Komentar