//program konversi suhu
#include <iostream>
using namespace std;
float c,K,F,R;
float k(float C){
return(C+273.15);
}
float f(float C){
return(C*1.8+32);
}
float r(float C){
return(C+491,67);
}
int main()
{
cout <<"masukan celcius: ";
cin>>c;
K=k(c);
F=f(c);
R=r(c);
cout<<"K: "<<K<<endl<<"F: "<<F<<endl<<"R: "<<R;
return 0;
}
Outputnya:Sekian, dan semoga bermanfaat.