using System; class Program { static void Main(string[] args) { int sum = 0; for (int i = 1; i <= Convert.ToInt32(args[0]); i++) { sum += i; } Console.WriteLine(sum); } }