Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Practice
- {
- class Program
- {
- static void Main(string[] args)
- {
- double bed = double.Parse(Console.ReadLine());
- double toilet = double.Parse(Console.ReadLine());
- double food = toilet + 0.25 * toilet;
- double toys = food - food * 0.5;
- double vet = toys + toys * 0.1;
- double cost = toilet + food + toys + vet;
- double additional = cost * 0.05;
- cost += additional;
- double costPerYear = bed+ cost * 12;
- Console.WriteLine($"{costPerYear:F2} lv.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement