Очередная ссылка на объект - C#
Формулировка задачи:
class Program
{
public int Fact(int n)
{
int ans=1;
for (int i = 1; i <= n; i++) ans *= i;
return ans;
}
static void Main(string[] args)
{
double x,e;
Console.WriteLine("Введите x");
x = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("Введите точность 'эпсилон'");
e = Convert.ToDouble(Console.ReadLine());
for (int i = 1; i < 10; i++) {Fact(i);}
}
}Решение задачи: «Очередная ссылка на объект»
textual
Листинг программы
public static int Fact(int n)
{
...
}