using System;
class Program {
static int Fact(int x)
{
if (x == 0)
return 1;
else
return x * Fact(x - 1);
}
static void Main() {
double S = 0;
double x = 4.3;
uint n = 5;
for (int i = 1; i <= n; i++){</p>
S += Math.Pow(x, i) / Fact(i);
}
S++;
Console.WriteLine("S = {0}", S);
}
}