Program Konversi Suhu
KONVERSI SUHU
Nama : Safira Alya Yusuf
NPM : 16118431
Kelas : 2KA15
Program
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
float C,F,K,R;
cout<<"\n";
cout<<"\t---- Hallo Selamat Datang ---\n";
cout<<"\t-----------------------------\n";
cout<<"\t=== PROGRAM KONVERSI SUHU ===\n";
cout<<"\t-----------------------------\n\n";
cout<<"Masukkan Nilai Celciusnya = ";
cin>>C;
F=C*1.8 + 32;
K=C+273.15;
R=C*0.8;
cout<<"\n";
cout<<"Nilai Fahrenheit = "<<F<<endl;
cout<<"Nilai Kelvin = "<<K<<endl;
cout<<"Nilai Reamur = "<<R<<endl;
getch();
}
Output
Komentar
Posting Komentar