koksibg

Daily_Earnings

Aug 31st, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.78 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 Daily_Earnings
  8. {
  9.     class Daily_Earnings
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int N = int.Parse(Console.ReadLine());
  14.             double M = double.Parse(Console.ReadLine());
  15.             double CourseOfDolar = double.Parse(Console.ReadLine());
  16.             double MonthlySalary = N * M;
  17.             double Revenue = MonthlySalary * 12 + MonthlySalary * 2.5;
  18.             double Tax = 0.25 * Revenue;
  19.             double ClearRevenue = Revenue - Tax;
  20.             double CurseLv = ClearRevenue * CourseOfDolar;
  21.             double MidDay = CurseLv / 365;
  22.             Console.WriteLine("{0:f2}", MidDay);
  23.         }
  24.     }
  25. }
Add Comment
Please, Sign In to add comment