Konversi suhu dari Celcius ke reamur,fahrenheint dan kelvin.
Flowchart
Source code nya
#include <iostream>
#include <string>
using namespace std;
int main()
{
string raptor_prompt_variable_zzyz;
int reamur;
int c;
int fahrenheit;
int kelvin;
raptor_prompt_variable_zzyz ="masukan suhu celcius";
cout << raptor_prompt_variable_zzyz << endl;
cin >> c;
reamur =c*4/5;
fahrenheit =9/5*c*32;
kelvin =c+273;
cout << "reamur=";
cout <<reamur << endl;
cout << "fahrenheit=";
cout <<fahrenheit << endl;
cout << "kelvin=";
cout<<kelvin << endl;
system("PAUSE");
system("SUCCESS");
}
Hasil Running nya
0 komentar:
Posting Komentar