Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main(string[] args)
- {
- int days = int.Parse(Console.ReadLine());
- double money = double.Parse(Console.ReadLine());
- double rate = double.Parse(Console.ReadLine());
- double monthEarn = days * money;
- double yearEarn = monthEarn * 12 + monthEarn * 2.5;
- yearEarn *= 0.75;
- double profitInLeva = yearEarn * rate;
- double earnPerDay = profitInLeva / 365;
- Console.WriteLine("{0:F2}", earnPerDay);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment