Created
June 6, 2018 08:53
-
-
Save fakhrikmt/7e629cbbfe7baa4da4119d66765d6d23 to your computer and use it in GitHub Desktop.
Konversi Suhu Dengan C++
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream.h> | |
#include <conio.h> | |
using namespace std; | |
int main() | |
{ | |
float C,F,K,R; | |
cout<<"\t=== PROGRAM KONVERSI SUHU ==="<<endl; | |
cout<<"\t FAKHRIKMT.BLOGSPOT.COM"<<endl<<endl; | |
cout<<"Masukkan Nilai Celciusnya = "; | |
cin>>C; | |
F=C*1.8 + 32; | |
K=C+273.15; | |
R=C*0.8; | |
cout<<endl; | |
cout<<"Nilai Fahrenheit = "<<F<<endl<<"Nilai Kelvin = "<<K<<endl<<"Nilai Reamur = "<<R; | |
getch(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment