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