Advertisement
hiker43

milestokm

Aug 13th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. double mileskm(double a)
  4. {
  5.     return a*1.609344;
  6. }
  7.  
  8.  
  9. int main()
  10. {
  11.     int a;
  12.     std::cout<<"Vnesi gi miljite: \t";
  13.     std::cin>>a;
  14.     std::cout<<"Miljite vo kilometri: "<<mileskm(a);
  15.  
  16.  
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement