Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var walkMinutes, walksQuantity, caloriesConsumed int
- fmt.Scanln(&walkMinutes)
- fmt.Scanln(&walksQuantity)
- fmt.Scanln(&caloriesConsumed)
- burnedCaloriesPerDay := walkMinutes * walksQuantity * 5
- if burnedCaloriesPerDay >= caloriesConsumed / 2 {
- fmt.Printf("Yes, the walk for your cat is enough. Burned calories per day: %d.\n", burnedCaloriesPerDay)
- } else {
- fmt.Printf("No, the walk for your cat is not enough. Burned calories per day: %d.\n", burnedCaloriesPerDay)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement