Guest User

Untitled

a guest
Aug 1st, 2017
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.68 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ConsoleApp1
  4. {
  5.     class Program
  6.     {
  7.         public static void Main()
  8.         {
  9.  
  10.             int workdays = int.Parse(Console.ReadLine());
  11.             double salaryDay = double.Parse(Console.ReadLine());
  12.             double exchangeRate = double.Parse(Console.ReadLine());
  13.             double zaplata = workdays * salaryDay;
  14.             double godDohod = (zaplata * 12) + (zaplata * 2.5);
  15.             double danuk = (godDohod * 25) / 100;
  16.             double chistGodDohod = (godDohod - danuk) * exchangeRate;
  17.             double srednaPechalbaDen = chistGodDohod / 365;
  18.             Console.WriteLine($"{srednaPechalbaDen:f2}");
  19.  
  20.  
  21.         }
  22.  
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment