Tinh bieu thuc n dau can
CODE
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace n_sqrt
{
class Program
{
static void Main(string[] args)
{
#region
Console.Write("Moi ban nhap n = ");
int n = int.Parse(Console.ReadLine());
double kq = 0;
for (int i = n; i >= 1; i--)
{
kq = Math.Sqrt(kq + i);
}
Console.WriteLine("Ket qua la {0}", kq);
Console.ReadLine();
#endregion
}
}
}
0 Response to "Tinh bieu thuc n dau can"
Đăng nhận xét