Text: |
ФІО = Андрей
Запитання:Скинул задание на почту укр нет
====================================
ANSWER ====================================
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication10
{
class Program
{
static void metod(double []mas,int max)
{
mas[0] = 1;
for (int i = 1; i < max; i++)
{
mas[i] = mas[i - 1] / ((i + 1) * (i + 1) * (i + 1));
}
return;
}
static void Main(string[] args)
{
const int max = 10;
double[] mas = new double[max];
metod(mas, max);
for (int i = 0; i < max; i++)
{
Console.WriteLine("{0} ", mas[i]);
}
Console.ReadKey();
}
}
}
END of ANSWER ====================================
|