Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Text.RegularExpressions;
- using System.Threading.Tasks;
- class Program
- {
- static void Main()
- {
- double priceCPU = double.Parse(Console.ReadLine()) * 1.57;
- double priceVGA = double.Parse(Console.ReadLine()) * 1.57;
- double priceRAM = double.Parse(Console.ReadLine()) * 1.57;
- int quantityRAM = int.Parse(Console.ReadLine());
- double discount = double.Parse(Console.ReadLine());
- var price = (priceCPU - (priceCPU * discount)) + (priceVGA - (priceVGA * discount)) + (priceRAM * quantityRAM);
- Console.WriteLine($"Money needed - {price:F2} leva.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement