Membuat Konversi Suhu
Hai Guys!
Kali ini Bang Fathur akan membuat bagaimana caranya membuat konversi Suhu Denga Dev C++
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
float c,r,k,f;
cout<<"================================================"<<endl;
cout<<"| KONVERSI SUHU |"<<endl;
cout<<"================================================"<<endl;
cout<<"\t Masukkan Suhu (Celcius) = "; cin>>c;
r=c*21/40+7.5;
cout<<"\t Suhu Dalam Reamur = "<<r<<endl;
k=c+273.15;
cout<<"\t Suhu Dalam Kelvin = "<<k<<endl;
f=(c*1.8)+32;
cout<<"\t Suhu Dalam Fahrenheit = "<<f<<endl;
cout<<"================================================"<<endl;
cout<<"| Terima Kasih Anda Telah Berhasil Mencobanya |"<<endl;
cout<<"| Fathurrahman Masngudi |"<<endl;
cout<<"|= TEKNIK INFORAMATIKA IBM BEKASI =|"<<endl;
cout<<"| 1500018078 |"<<endl;
cout<<"================================================"<<endl;
system("PAUSE");
return EXIT_SUCCESS;
}
Maka Tampilannya akan Seperti ini
Selamat Mencoba My Friends
Kali ini Bang Fathur akan membuat bagaimana caranya membuat konversi Suhu Denga Dev C++
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
float c,r,k,f;
cout<<"================================================"<<endl;
cout<<"| KONVERSI SUHU |"<<endl;
cout<<"================================================"<<endl;
cout<<"\t Masukkan Suhu (Celcius) = "; cin>>c;
r=c*21/40+7.5;
cout<<"\t Suhu Dalam Reamur = "<<r<<endl;
k=c+273.15;
cout<<"\t Suhu Dalam Kelvin = "<<k<<endl;
f=(c*1.8)+32;
cout<<"\t Suhu Dalam Fahrenheit = "<<f<<endl;
cout<<"================================================"<<endl;
cout<<"| Terima Kasih Anda Telah Berhasil Mencobanya |"<<endl;
cout<<"| Fathurrahman Masngudi |"<<endl;
cout<<"|= TEKNIK INFORAMATIKA IBM BEKASI =|"<<endl;
cout<<"| 1500018078 |"<<endl;
cout<<"================================================"<<endl;
system("PAUSE");
return EXIT_SUCCESS;
}
Maka Tampilannya akan Seperti ini
Selamat Mencoba My Friends
Komentar
Posting Komentar