Advertisement
Majus2137

Zad8

Oct 26th, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. #include <cstdio>
  4. #include <conio.h>
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. float c;
  10. float f;
  11. cout << " Podaj temperature w celcjuszach: ";
  12. cin >> c;
  13. cout << endl;
  14. f = ( c * (9.0/5) ) + 32;
  15. cout << " Temperatura w farenheitach wynosi: " << f << endl;
  16. cout<< endl;
  17. cout << "Temperatura w Kelwinach: " << f + 273.15 <<endl;
  18.  
  19. system("PAUSE");
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement