#include <iostream>
#include <string>
using namespace std;
int main()
{
int p;
double r, f, k, c, i;
cout << "masukan banyak perulangan : ";
cin >> p;
cout<<endl<<endl;
i =0;
while (!(i==p))
{
cout << "masukan nilai suhu dalam celcius = ";
cin >> c;
r =0.8*c;
f =1.8*c+32;
k =c+273;
cout<<endl;
cout << c<<" derajat celcius = "<<endl;
cout << "\t*"<<r<<" derajat reamur\n";
cout << "\t*"<<f<<" derajat farenheit\n";
cout << "\t*"<<k<<" derajat kelvin\n";
cout<<endl<<endl;
i =i+1;
}
return 0;
}
sekian dan sampai bertemu kembali
0 komentar:
Posting Komentar