Skip to content

Instantly share code, notes, and snippets.

@fakhrikmt
Created June 6, 2018 08:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fakhrikmt/7e629cbbfe7baa4da4119d66765d6d23 to your computer and use it in GitHub Desktop.
Save fakhrikmt/7e629cbbfe7baa4da4119d66765d6d23 to your computer and use it in GitHub Desktop.
Konversi Suhu Dengan C++
#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