Diberdayakan oleh Blogger.
RSS
Powered By Blogger

ALPRO - Flowchar dan Program C+ + Menghitung Konverter Suhu Celcius-Reamur-Fahrenheit-Kelvin

Program C+ + :



#include <iostream>
#include <string>

using namespace std;
int main()
{
   string raptor_prompt_variable_zzyz;
   int R;
   int k;
   int c;
   int f;

   raptor_prompt_variable_zzyz ="Masukkan besar suhu (Dalam Celcius): ";
   cout << raptor_prompt_variable_zzyz << endl;
   cin >> c;
   R =c*4/5;
   f =9/5*c+32;
   k =c+273;
   cout << "Dalam Reamur: "<< R << endl;   cout << "Dalam Fahrenheit: "<<f << endl;   cout << "Dalam Kelvin: "<<k << endl;
   system ("PAUSE");
   return 0;
}

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 komentar:

Posting Komentar