Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace firma
- {
- class Program
- {
- static void Main(string[] args)
- {
- int workDaysInMonth = int.Parse(Console.ReadLine());
- double daySalary = double.Parse(Console.ReadLine());
- double usdToLev = double.Parse(Console.ReadLine());
- double monthSalary = workDaysInMonth * daySalary;
- double yearSalary = monthSalary * 12 + monthSalary * 2.5;
- double taxes = yearSalary * 0.25;
- double netProfit = yearSalary - taxes ;
- double avgProfitPerDay = netProfit * usdToLev / 365;
- Console.WriteLine("{0:F2}", avgProfitPerDay);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement