Krasimir_Slavov

Untitled

Nov 4th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Exam_Family_House
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. int months = int.Parse(Console.ReadLine());
  14. double billЕlectro = double.Parse(Console.ReadLine());
  15.  
  16. double bill1 = double.Parse(Console.ReadLine());
  17. double bill2 = double.Parse(Console.ReadLine());
  18. double bill3 = double.Parse(Console.ReadLine());
  19. double bill4 = double.Parse(Console.ReadLine());
  20. double bill5 = double.Parse(Console.ReadLine());
  21.  
  22. double sumElectricity = bill1 + bill2 + bill3 + bill4 + bill5;
  23.  
  24.  
  25. Console.WriteLine($"Electricity: {sumElectricity} lv");
  26. Console.WriteLine($"Water: {months * 20} lv");
  27. Console.WriteLine($"Internet: {months * 15} lv");
  28. Console.WriteLine($"Other: {други за всички месеци} lv");
  29. Console.WriteLine($"Average: {средно всички разходи за месец} lv");
  30. }
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment