PB C#: While-Loop Excercise - 06. Cake
Здравейте,
На този код ми дава 92/100 точки без да показва къде е грешката:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _16.Cake
{
    class Program
    {
        static void Main(string[] args)
        {
            int pcsWidth = int.Parse(Console.ReadLine());
            int pcsLenght = int.Parse(Console.ReadLine());
int pcsCakeTotal = pcsWidth * pcsLenght;
            int pcsTaken = 0;
            int pcsTakenTotal = 0;
            string command = string.Empty;
            while (pcsTakenTotal < pcsCakeTotal)
            {
                command = Console.ReadLine().ToLower();
                if (command != "stop")
                {
                    pcsTaken = int.Parse(command);
                    pcsTakenTotal += pcsTaken;
                    if (pcsTakenTotal >= pcsCakeTotal)
                    {
                        Console.WriteLine($"No more cake left! You need {pcsTakenTotal - pcsCakeTotal} pieces more.");
                        break;
                    }
                }
                else if (command == "stop")
                {
                    Console.WriteLine($"{pcsCakeTotal - pcsTakenTotal} pieces are left.");
                    break;
                }
            }
        }
    }
}
Някой може ли да ми помогне да открия къде греша? Много благодаря!
Благодаря!