While-Loop - Lab/задача 8 Преместване
Дава ми 62% , иначе работи , коя провека ми се губи? Благодаря
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Moving
{
    class Program
    {
        static void Main(string[] args)
        {
            int width = int.Parse(Console.ReadLine());
            int length= int.Parse(Console.ReadLine());
            int hight= int.Parse(Console.ReadLine());
            int freespace = width * length * hight;
            int totalSpace = 0;
            int spaceDiff = 0;
            string command = Console.ReadLine();
            while (command != "Done")
            {
                int cartoonSpace = int.Parse(command);
                
                totalSpace = totalSpace + cartoonSpace;
                spaceDiff = Math.Abs(totalSpace - freespace);
                if(totalSpace>=freespace)
                    Console.WriteLine("No more free space!You need {0} Cubic meters more.",spaceDiff);
command = Console.ReadLine();
            }
            if (command == "Done")
            {
                Console.WriteLine("{0} Cubic meters left.",spaceDiff);
            }
        }
    }
}
 
Сърдечно благодаря , не ги бях догледал тези детайли