Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace LearnRSUE
- {
- class Program
- {
- static void Main()
- {
- int time;
- double vklad;
- Console.Write("Сумма вклада: ");
- vklad = Convert.ToInt32(Console.ReadLine());
- Console.Write("Срок вклада(месяцев): ");
- time = Convert.ToInt32(Console.ReadLine());
- for (int i = 0; i < time; i++)
- {
- vklad += vklad * 0.06;
- }
- Console.WriteLine("\nЧерез " + time + " месяцa вы получите " + Math.Round(vklad, 2) + " руб");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement