Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int fh(int);
  4. int main()
  5. {
  6.     int celsium;
  7.     cout << "Zadajte stupne: ";
  8.     cin >> celsium;
  9.     double fahrenheit = fh(celsium);
  10.     cout << celsium << " stupnov je " << fahrenheit << " fahrenheitov";
  11.     return 0;
  12.  
  13.  
  14. }
  15. int fh(int cs)
  16. {
  17.     return 1.8 * cs + 32.0;
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement