
И вот мой результат:

Это мой код
private static void Main(string[] args)
{
Console.WriteLine("CASHIER");
Console.WriteLine("Enter Quantity of Products: ");
int qty = Convert.ToInt32(Console.ReadLine());
if (qty > 5)
{
Console.WriteLine("Maximum of 5 products");
}
else
{
int i = 1;
while (i
Подробнее здесь: https://stackoverflow.com/questions/791 ... he-final-t