Advertisement
Sephinroth

prac 1 ex 8

Sep 15th, 2019
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.63 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace ex8
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             Console.Write("Введите сумму вклада = ");
  13.             double a = double.Parse(Console.ReadLine());
  14.             Console.Write("Введите процент по вкладу = ");
  15.             double b = double.Parse(Console.ReadLine());
  16.             Console.Write("Через год начислят = ");
  17.             Console.WriteLine("{0,00}", (a*b/100), "p.");
  18.             Console.ReadKey();
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement