using System;
public class Program
{
public static void Main()
int x,a,n;
double b;
Console.Write("Nhập n= ");
n = Convert.ToInt32(Console.ReadLine());
a = 0;
for ( x=1 ; x<=n ; x++)
a=a+x;
b = 1.0 * a/n;
Console.WriteLine("Sum= {0}, Agv= {1} ",a,b);
}