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

19 lines
423 B
C#
Raw Normal View History

2023-03-22 22:07:12 +00:00
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);
2023-03-23 08:39:39 +00:00
computer.HardwareSelection(money);