Guest User

Untitled

a guest
Aug 3rd, 2020
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.  
  7. double ownDog, neighborDog, leva;
  8. cin >> ownDog >> neighborDog;
  9.  
  10. leva = (ownDog * 2.50) + (4 * neighborDog);
  11.  
  12. cout.setf(ios::fixed);
  13. cout.precision(2);
  14.  
  15. cout << leva << " lv.";
  16.  
  17.  
  18.  
  19. return 0;
  20. }
Add Comment
Please, Sign In to add comment