void fabnacii(int n, int& fn)
{
if (n == 1)
{
fn = 1;
}
else if (n == 2)
{
fn = 1;
}
else if (n > 2)
{
int* Fabnacci = new int[n];
Fabnacci[0] = 1;
Fabnacci[1] = 1;
for (int i = 2; i < n; i++)
{
Fabnacci[i] = Fabnacci[i - 1] + Fabnacci[i - 2];
}
fn = Fabnacci[n - 1];
delete(Fabnacci);
}
}