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 Exam_Family_House
- {
- class Program
- {
- static void Main(string[] args)
- {
- int months = int.Parse(Console.ReadLine());
- double billЕlectro = double.Parse(Console.ReadLine());
- double bill1 = double.Parse(Console.ReadLine());
- double bill2 = double.Parse(Console.ReadLine());
- double bill3 = double.Parse(Console.ReadLine());
- double bill4 = double.Parse(Console.ReadLine());
- double bill5 = double.Parse(Console.ReadLine());
- double sumElectricity = bill1 + bill2 + bill3 + bill4 + bill5;
- Console.WriteLine($"Electricity: {sumElectricity} lv");
- Console.WriteLine($"Water: {months * 20} lv");
- Console.WriteLine($"Internet: {months * 15} lv");
- Console.WriteLine($"Other: {други за всички месеци} lv");
- Console.WriteLine($"Average: {средно всички разходи за месец} lv");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment