hawzze

depositCalculator_SoftUni

Jul 11th, 2020
50
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace softuni1
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double depositSum = double.Parse(Console.ReadLine());
  10.            int depositTerm = int.Parse(Console.ReadLine());
  11.             double interest = double.Parse(Console.ReadLine());
  12.  
  13.            
  14.             double D = ( depositSum * interest)/100;
  15.             double T = D / 12;
  16.             double totalSum = depositSum + depositTerm * T;
  17.             Console.WriteLine(totalSum);
  18.  
  19.  
  20.         }
  21.  
  22.     }
  23. }
RAW Paste Data