Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _01.Honeycombs
- {
- class Program
- {
- static void Main(string[] args)
- {
- int countBees = int.Parse(Console.ReadLine());
- int countFlowers = int.Parse(Console.ReadLine());
- double totalGramsHoney = 0.21 * countBees * countFlowers;
- double countHoneyPie = Math.Floor(totalGramsHoney / 100);
- double leftHoney = totalGramsHoney - countHoneyPie * 100;
- Console.WriteLine($"{countHoneyPie:F0} honeycombs filled.");
- Console.WriteLine($"{leftHoney:F2} grams of honey left.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement