Cookie factory
Здравейте,
Искам да ви помоля за помощ по тази задача
Плагодаря предваритално.
int batches = int.Parse(Console.ReadLine());
string command = Console.ReadLine();
for (int i = 1; i <= batches; i++)
{
string ingredient = Console.ReadLine();
while (true)
{
if (command=="Bake!")
{
if (ingredient == "sugar" && ingredient == "eggs" && ingredient == "flour")
{
Console.WriteLine($"Baking batch number {i}...");
}
else
{
Console.WriteLine("The batter should contain flour, eggs and sugar!");
}
}
}
}