Advertisement
MSadam

Konversi Perulangan Suhu Celcius ke Fahrenheit & Reamur

Nov 11th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     float f,r;
  7.     int j,c;
  8.     c=10;
  9.    
  10.     cout<<"|Celcius |Fahrenheit\t|Reamur |\n|";
  11.     cout<<"========|==============|=======|"<<endl;
  12.     for(j=1; j<=10; j++){
  13.             r = (c*4/9);
  14.             f = (c*9/5)+32;
  15.             cout<<"|"<<c<<"\t |"<<f<<"\t\t|";
  16.             cout<<r<<"\t|";
  17.         cout<<endl;
  18.         c+=10;
  19.     }
  20.     cout<<"================================="<<endl;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement