Advertisement
Spocoman

PC Store

Aug 14th, 2022
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.60 KB | None | 0 0
  1. using System;
  2.  
  3. namespace PCStore
  4.  
  5. {
  6.     class Program
  7.     {
  8.         static void Main(string[] args)
  9.         {
  10.             double procesor = double.Parse(Console.ReadLine());
  11.             double video = double.Parse(Console.ReadLine());
  12.             double ram = double.Parse(Console.ReadLine());
  13.             int ramCount = int.Parse(Console.ReadLine());
  14.             double discount = double.Parse(Console.ReadLine());
  15.  
  16.             double total = ((procesor + video) * (1 - discount) + ram * ramCount) * 1.57;
  17.  
  18.             Console.WriteLine($"Money needed - {total} leva.");
  19.         }
  20.     }
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement