Search posts...
string line; while ((line = Console.ReadLine()) != "0") { int a = int.Parse(line); Console.WriteLine(a * (a + 1) / 2); }
“0”
LHS's Study Space