Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace _1.WorkHours
- {
- using System;
- public class WorkHours
- {
- public static void Main(string[] args)
- {
- checked
- {
- int givenWorkHours = int.Parse(Console.ReadLine());
- int availableDays = int.Parse(Console.ReadLine());
- int productivity = int.Parse(Console.ReadLine());
- int workHours = (int)(availableDays * 0.9 * 12 * (productivity / 100d));
- int difference = workHours - givenWorkHours;
- if (difference >= 0)
- {
- Console.WriteLine("Yes");
- }
- else
- {
- Console.WriteLine("No");
- }
- Console.WriteLine(difference);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement