Advertisement
Guest User

Untitled

a guest
Jan 14th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Ivanovi_s_Family
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. var budget = double.Parse(Console.ReadLine());
  10. var firstChild = double.Parse(Console.ReadLine());
  11. var secondChild = double.Parse(Console.ReadLine());
  12. var thirtChild = double.Parse(Console.ReadLine());
  13. var podaruci = firstChild + secondChild + thirtChild;
  14. var resto = budget - podaruci;
  15. var danak = (budget - podaruci) * 0.10;
  16. var darenie = resto - danak;
  17. Console.WriteLine($"{darenie:f2}");
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement