Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace HelloApp
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Введите вклад и количество месяцев");
- decimal a = Convert.ToDecimal(Console.ReadLine());
- int b = Convert.ToInt32(Console.ReadLine());
- for (int i = 1; i <= b; i++)
- {
- a = a * 107 / 100;
- }
- Console.WriteLine($"{a}");
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement