Advertisement
bacco

Задача: дневна печалба

Jan 18th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.73 KB | None | 0 0
  1. using System;
  2.  
  3. namespace DDDDDDDDDDDDDDDDDDDDDD
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.  
  10.             int workDays = int.Parse(Console.ReadLine());
  11.             double moneyParDay = double.Parse(Console.ReadLine());
  12.             double curencyCurse = double.Parse(Console.ReadLine());
  13.  
  14.             double monSalary = (workDays * moneyParDay) * curencyCurse;
  15.  
  16.             double yearlySalary = monSalary * 12 + monSalary * 2.5;
  17.             double taxes = yearlySalary * 0.25;
  18.             double totalSalery = (yearlySalary - taxes);
  19.             double totalDaySalery = (totalSalery / 365);
  20.  
  21.             Console.WriteLine(Math.Round(totalDaySalery,2
  22.                 ));
  23.  
  24.         }
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement