This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
NG_2023_Stanislav_Mykhailenko/Lesson_3/Task_1/Program.cs
2023-03-23 10:39:39 +02:00

18 lines
423 B
C#

using Classes;
using Lists;
using Methods;
int money;
while (true)
{
Console.Write("Enter how much money you can afford to spend: ");
if (int.TryParse(Console.ReadLine(), out money))
break;
}
Console.WriteLine("Choose a motherboard first.");
Motherboard motherboard = (new MotherboardMethods()).DisplayMotherboardList();
Computer computer = new Computer(motherboard);
computer.HardwareSelection(money);