Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Task 005, Chapter 2.1
- using System;
- public class DailyEarnings
- {
- static void Main()
- {
- int days = int.Parse(Console.ReadLine());
- double moneyPerDay = double.Parse(Console.ReadLine());
- double value = double.Parse(Console.ReadLine());
- double monthSalary = days * moneyPerDay;
- double yearSallary = monthSalary * 12 + monthSalary * 2.5;
- yearSallary -= yearSallary * 0.25;
- Console.WriteLine($"{(yearSallary * value / 365):F2}");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment