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"); }
2 Respuestas
+ 3
https://code.sololearn.com/c4rCvmiUD4B8
Keep learning & happy coding :D
+ 2
OK, thanks)