using System; using System.Collections.Generic; using System.Text; namespace Lapid1 { class Program3 { public static void Main(string[] arg) { Lapikott kott1 = new Lapikott(); kott1.Lisa(new Riidelapp(5, 6, "kollane")); kott1.Lisa(new Riidelapp(5, 8, "kollane")); Console.WriteLine(kott1.PindaladeSumma()); Lapikott kott2 = new Lapikott(); kott2.Lisa(new Riidelapp(5, 9, "sinine")); kott2.Lisa(new Riidelapp(5, 7, "sinine")); kott2.Lisa(new Riidelapp(5, 8, "kollane")); Console.WriteLine(kott2.PindaladeSumma()); Dictionary kogused=kott2.VarvideKogused(); foreach (string varv in kogused.Keys) { Console.WriteLine(varv + ": " + kogused[varv]); } } } }