Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- double dogFoodPrice = 2.50, catFoodPrice = 4.00;
- int dogFoodCount, catFoodCount;
- cin >> dogFoodCount >> catFoodCount;
- double totalPrice = dogFoodPrice * dogFoodCount + catFoodPrice * catFoodCount;
- cout << totalPrice << " lv." << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement