Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int fh(int);
- int main()
- {
- int celsium;
- cout << "Zadajte stupne: ";
- cin >> celsium;
- double fahrenheit = fh(celsium);
- cout << celsium << " stupnov je " << fahrenheit << " fahrenheitov";
- return 0;
- }
- int fh(int cs)
- {
- return 1.8 * cs + 32.0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement