Advertisement
koksibg

Business

Aug 31st, 2016
2,283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.70 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Business
  8. {
  9.     class Business
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int Hours = int.Parse(Console.ReadLine());
  14.             int Day = int.Parse(Console.ReadLine());
  15.             int Works = int.Parse(Console.ReadLine());
  16.             double WorkProgect = 0.9 * Day * 8 + Works * 2 * Day;
  17.             if (WorkProgect >= Hours)
  18.             Console.WriteLine("Yes!{0} hours left.", Math.Floor(WorkProgect - Hours));
  19.             else Console.WriteLine("Not enough time!{0} hours needed.", Math.Ceiling(Hours- WorkProgect));
  20.         }
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement