Console.Write("Введіть число b: ");
double b = Convert.ToDouble(Console.ReadLine());
double a = 0;
while (a <= b)
{
a = Math.Pow(a, 2) + 1;
Console.WriteLine(a);
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
Console.Write("Введіть число b: ");
double b = Convert.ToDouble(Console.ReadLine());
double a = 0;
while (a <= b)
{
a = Math.Pow(a, 2) + 1;
Console.WriteLine(a);
}