16/03/12

C++ KONVERSI SUHU

#include <iostream>
#include <conio>
 int main()
 {
 float c, r, f;
 cout<<":: KONVERSI SUHU ::"<<endl<<endl;
 cout<<"Suhu Celcius     : ";
 cin>>c;
 r = c*4/5;
 cout<<"Suhu Reamur      : ";
 cout<<r<<endl;
 f = (c*9/5)+32;
 cout<<"Suhu Fahrenheit  : ";
 cout<<f<<endl;
 return 0;

 }

0 komentar

Posting Komentar