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_4/Task_2/Program.cs
Stanislav Mykhailenko 944c693dc8
Update Lesson 4 Task 2
2023-04-13 18:16:26 +03:00

13 lines
292 B
C#

using Open_Closed.Classes;
List<MagicType> magicTypes = new List<MagicType>()
{
new MagicType("Fire Magic", 150),
new MagicType("Water Magic", 50000000)
};
Magic magic = new Magic(magicTypes);
magic.CountYourMagic(150);
magic.CountYourMagic(50000000);
magic.CountYourMagic(12345);