Advertisement
avukas

cvorovi

Mar 2nd, 2014
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <cmath>
  4.  
  5.  
  6. int main()
  7. {
  8. int bc;
  9. const int mmilja = 1852;
  10. std::cout<<"Unesi brzinu broda u cvorovima:\n";
  11. std::cin>>bc;
  12. double pretvori, cvor;
  13. cvor =mmilja*0.001;
  14. std::cout <<" Jedan cvor iznosi "<< cvor<< " km/h\n" ;
  15. pretvori=cvor * bc;
  16. std::cout<<"Rezultat je: "<< pretvori;
  17. std::cout.width(4);
  18. std::cout.precision(3);
  19.  
  20.  
  21.  
  22.  
  23.  
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement