0

Balconies

string n = Console.ReadLine(); string[] a = n.Split(','); int[] convert = Array.ConvertAll<string, int>(a, int.Parse); convert[0] *= convert[1]; string n1 = Console.ReadLine(); string[] a1 = n1.Split(','); int[] convert1 = Array.ConvertAll<string, int>(a1, int.Parse); convert1[0] *= convert1[1]; if (convert[0] >= convert1[0]) { Console.WriteLine("Apartment A"); } else { Console.WriteLine("Apartment B"); }

28th Oct 2021, 9:01 AM
Роман Жигунов
Роман Жигунов - avatar
2 Respostas
+ 3
https://code.sololearn.com/c4rCvmiUD4B8 Keep learning & happy coding :D
28th Oct 2021, 9:52 AM
SoloProg
SoloProg - avatar
+ 2
OK, thanks)
28th Oct 2021, 10:08 AM
Роман Жигунов
Роман Жигунов - avatar