Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp1
- {
- class Program
- {
- public static void Main()
- {
- int workdays = int.Parse(Console.ReadLine());
- double salaryDay = double.Parse(Console.ReadLine());
- double exchangeRate = double.Parse(Console.ReadLine());
- double zaplata = workdays * salaryDay;
- double godDohod = (zaplata * 12) + (zaplata * 2.5);
- double danuk = (godDohod * 25) / 100;
- double chistGodDohod = (godDohod - danuk) * exchangeRate;
- double srednaPechalbaDen = chistGodDohod / 365;
- Console.WriteLine($"{srednaPechalbaDen:f2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment