8. Company Users - Associative Arrays - Exercise
Здравейте!
Успявам да стигна до 50/100 и не мога да открия грешката си в тази задача.
Идеи къде бъркам?
https://pastebin.com/5VCpjyC1
Здравейте!
Успявам да стигна до 50/100 и не мога да открия грешката си в тази задача.
Идеи къде бъркам?
https://pastebin.com/5VCpjyC1
No additional ordering required when printing each employee's id (only company names need to be ordered by name, good code otherwise.
:-)
=> "When you finish reading the data, order the companies by the name in ascending order. Print the company name and each employee's id in the following format:"
foreach (var company in companyData.OrderBy(company => company.Key))
{
Console.WriteLine($"{company.Key}");
//foreach (var id in company.Value.OrderBy(id => id))
foreach (var id in company.Value)
{
Console.WriteLine($"-- {id}");
}
}
Благодаря!