#include <iostream>
/* run this program using the console
pauser or add your own getch, system("pause") or input loop */
/*cara menghitung suhu*/
using namespace std;
int main(int argc, char** argv) {
{ int
c;
float
r,f,k;
cout<<"masukkan
suhu c :";
cin>>c;
r=4/5*c;
r=4/(float)5*c;
f=(9/5*c)+32;
k=c+273;
cout<<"nilai
suhu c= "<<"\t r= "<<r<<"\t f= \t k=
"<<f;
}
return
0;
}
Tidak ada komentar:
Posting Komentar