Rabu, 14 Oktober 2015

KALKULATOR SUHU

#include <iostream>
#include <conio.h>
#include <stdio.h>

using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char** argv) {
    int a,b,c,d;
   
   
    cout<<"masukan suhu celcius = ";cin>>a;
     b=(a*21/40+7.5);
     c=a+273.15;
     d=a*1.8+32;
   
     cout<<"C --> R = "<<a<<endl;
     cout<<"C --> K = "<<c<<endl;
     cout<<"C --> F = "<<d<<endl;
   
    return 0;
}