Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp22
- {
- class Program
- {
- static void Main(string[] args)
- {
- double kgLemons = double.Parse(Console.ReadLine());
- double kgShugar = double.Parse(Console.ReadLine());
- double litersWater = double.Parse(Console.ReadLine());
- double mlLemonade = kgLemons * 980;
- double totalMlLemonade = mlLemonade + litersWater * 1000 + ((kgShugar / 100) * 30);
- double totalCups = totalMlLemonade / 150;
- double totalMoney = totalCups * 1.2;
- Console.WriteLine($"All cups sold: {totalCups:f0}");
- Console.WriteLine($"Money earned: {totalMoney:f2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement