Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace exampreparation
- {
- class exam
- {
- static void Main(string[] args)
- {
- int bees = int.Parse(Console.ReadLine());
- int flowers = int.Parse(Console.ReadLine());
- double beesProduct = bees * flowers * 0.21;
- double honeycombs = beesProduct / 100;
- double rest = beesProduct % 100;
- Console.WriteLine($"{Math.Floor(honeycombs)} honeycombs filled.");
- Console.WriteLine($"{rest:f2} grams of honey left.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement