Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. using System;
  2.  
  3. namespace HelloApp
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. Console.WriteLine("Введите вклад и количество месяцев");
  10. decimal a = Convert.ToDecimal(Console.ReadLine());
  11. int b = Convert.ToInt32(Console.ReadLine());
  12.  
  13. for (int i = 1; i <= b; i++)
  14. {
  15. a = a * 107 / 100;
  16. }
  17.  
  18. Console.WriteLine($"{a}");
  19. Console.ReadKey();
  20. }
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement