Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Biscuits_Factory_Krassy
- {
- class Program
- {
- static void Main(string[] args)
- {
- int numberOfBiscForOneWorker = int.Parse(Console.ReadLine());
- int numbersOfWorker = int.Parse(Console.ReadLine());
- int konkorentBiscuitForMounth = int.Parse(Console.ReadLine());
- double dayProizvodstvo = 0;
- for (int i = 1; i <= 30; i++)
- {
- if (i % 3 == 0)
- {
- dayProizvodstvo += Math.Floor(0.75 * numbersOfWorker * numberOfBiscForOneWorker);
- //double discount = usualProzvodstvo * 0.25;
- //dayProizvodstvo -= discount;
- }
- else
- {
- dayProizvodstvo += numberOfBiscForOneWorker * numbersOfWorker;
- }
- }
- Console.WriteLine($"You have produced {dayProizvodstvo} biscuits for the past month.");
- if (dayProizvodstvo > konkorentBiscuitForMounth)
- {
- double razikaMejduMoiITehni = dayProizvodstvo - konkorentBiscuitForMounth;
- Console.WriteLine($"You produce {razikaMejduMoiITehni / konkorentBiscuitForMounth * 100:f2} percent more biscuits.");
- }
- else if (dayProizvodstvo < konkorentBiscuitForMounth)
- {
- double razikaMejduMoiITehni = konkorentBiscuitForMounth - dayProizvodstvo;
- Console.WriteLine($"You produce {razikaMejduMoiITehni / konkorentBiscuitForMounth * 100:f2} percent less biscuits.");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement