Guest User

Untitled

a guest
May 17th, 2021
54
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace Interest
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int n = int.Parse(Console.ReadLine());
  10.             double sumYear1 = n * 0.05 + n;
  11.             double sumYear2 = sumYear1 * 0.05 + sumYear1;
  12.             double sumYear3 = sumYear2 * 0.05 + sumYear2;
  13.  
  14.            
  15.            
  16.             Console.WriteLine(Math.Round(sumYear3, 2));
  17.         }
  18.     }
  19. }
  20.  
RAW Paste Data