#include <iostream>
#include <conio.h>
//#include <cstdlib>
//#include <iostream.h>
void 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;
}
#include <conio.h>
//#include <cstdlib>
//#include <iostream.h>
void 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;
}
No comments:
Post a Comment