Program Konversi Suhu



Program konversi suhu


#include <iostream>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** argv) {
                float c,cr,cf,ck;
                cout<<"program konfersi derajat celcius "<<endl;
                cout<<"masukan nilai celcius \t\t: ";
                cin>>c;
                cr = c*4/5;
                cf = c*9/5+32;
                ck = c+273;
                cout<<endl<<"konversi celcius ke reamur \t: "<<cr;
                cout<<endl<<"konversi celcius ke fahrenheit \t: "<<cf;
                cout<<endl<<"konversi celcius ke kelvin \t: "<<ck;
               
               
                return 0;
}

Share this

Related Posts

Previous
Next Post »