static void Main(string[] args) { string s = Console.ReadLine(); int x, y; x = int.Parse(s); y = int.Parse(s); point a = new point(x, y); s = Console.ReadLine(); x = int.Parse(s); y = int.Parse(s); point b = new point(x, y); a = a + b; Console.WriteLine('(' + a.x + ", " + a.y + ')'); }
static void Main(string[] args) { string[] s = Console.ReadLine().Split(); int x, y; x = Convert.ToInt32(s[0]); y = Convert.ToInt32(s[1]); point a = new point(x, y); s = Console.ReadLine().Split(); x = Convert.ToInt32(s[0]); y = Convert.ToInt32(s[1]); point b = new point(x, y); a = a + b; Console.WriteLine("(" + a.x + ", " + a.y + ")"); Console.WriteLine("Hello world!"); Console.ReadKey(); }