using System;
namespace ConsoleApp
{
class Program
{
static void Main(string[] args)
{
Console. Write("Enter N = ");
int n = int. Parse(Console. ReadLine());
double Result = 1;
int i;
for (i = 0; i < n; i++) Result *= 1. 0 + 1. 0 / Math. Pow((double)(i+1), 2);
Console. WriteLine("For cycle result = " + Result. ToString());
i = 0;
Result = 1;
while (i < n) {
Result *= 1. 0 + 1. 0 / Math. Pow((double)(i+1), 2);
i++;
}
Console. WriteLine("While cycle result = " + Result. ToString());
Console. ReadLine();
}
}
}