Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Firm
- {
- class Program
- {
- static void Main(string[] args)
- {
- double hour = double.Parse(Console.ReadLine());
- double day = double.Parse(Console.ReadLine());
- double workers = double.Parse(Console.ReadLine());
- double firmHour = Math.Floor (day * 8 * 0.9 + (2 * day * workers));
- if (hour > firmHour)
- {
- Console.WriteLine($"Not enough time!{Math.Floor(hour - firmHour)} hours needed.");
- }
- else
- {
- Console.WriteLine($"Yes!{Math.Floor(firmHour - hour)} hours left.");
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment