fork download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. float zamiana(float x)
  6. {
  7. return x*1.609;
  8. }
  9.  
  10.  
  11. int main() {
  12.  
  13. cout << zamiana(5) << endl;
  14. cout << zamiana(150) << endl;
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
8.045
241.35