Advertisement
Guest User

nopan gendud

a guest
Oct 23rd, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main ()
  7. {
  8. char nama[7], nis[8];
  9.  
  10. float celcius,fahrenheit,kelvin,reamur;
  11.  
  12. cout<<" ------------------------";
  13. cout<< endl;
  14. cout<<"| Ulangan Praktik |";
  15. cout<< endl;
  16. cout<<"| Pemrograman dasar |";
  17. cout<< endl;
  18. cout<<"|------------------------|";
  19. cout<< endl;
  20.  
  21.  
  22. cout<<"| Konversi Suhu |";
  23. cout<< endl;
  24. cout<<"| Input Celsius : ";cin>> celcius;
  25.  
  26. reamur=celcius*4/5;
  27. fahrenheit=(celcius*9/5)+32;
  28. kelvin=celcius+273.15;
  29.  
  30.  
  31. cout<<"| Kelvin Adalah : "<<kelvin<<endl;
  32. cout<<"| Reamur Adalah : "<<reamur<<endl;
  33. cout<<"| Fahrenheit Adalah: "<<fahrenheit<<endl;
  34. cout<<"| Nama: ";cin>> nama;
  35. cout<<"| NIS : ";cin>> nis;
  36. cout<<"|------------------------|";
  37. cout<< endl;
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement