Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace CatWalking
- {
- class Program
- {
- static void Main(string[] args)
- {
- int walkMinutes = int.Parse(Console.ReadLine());
- int walksQuantity = int.Parse(Console.ReadLine());
- int caloriesConsumed = int.Parse(Console.ReadLine());
- int burnedCaloriesPerDay = walkMinutes * walksQuantity * 5;
- if (burnedCaloriesPerDay >= caloriesConsumed / 2)
- {
- Console.WriteLine($"Yes, the walk for your cat is enough. Burned calories per day: {burnedCaloriesPerDay}.");
- }
- else
- {
- Console.WriteLine($"No, the walk for your cat is not enough. Burned calories per day: {burnedCaloriesPerDay}.");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement