SHARE
TWEET

Pets Shop

a guest Jan 11th, 2020 110 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int dogsCount;
  8.     cin >> dogsCount;
  9.     int animalsRestCount;
  10.     cin >> animalsRestCount;
  11.     int sumDogs;
  12.     cin >> sumDogs;
  13.     sumDogs = dogsCount * 2.50;
  14.     int sumAnimalsRest;
  15.     cin >> sumAnimalsRest;
  16.     sumAnimalsRest = animalsRestCount * 4;
  17.  
  18.     cout << (sumDogs)"lv.";
  19.     cout << (sumAnimalsRest)"lv.";
  20.     cout.setf(ios::fixed);
  21.     cout.precision(2)
  22.  
  23.         return 0;
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top