Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main() {
- int walkMinutes, walksQuantity, caloriesConsumed;
- cin >> walkMinutes >> walksQuantity >> caloriesConsumed;
- int burnedCaloriesPerDay = walkMinutes * walksQuantity * 5;
- if (burnedCaloriesPerDay >= caloriesConsumed / 2) {
- cout << "Yes, the walk for your cat is enough. Burned calories per day: " << burnedCaloriesPerDay << endl;
- }
- else{
- cout << "No, the walk for your cat is not enough. Burned calories per day: " << burnedCaloriesPerDay << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement