Для тех кто разбирается в c#, есть блок схема по условию нужно найти s . S я уже нашел как найти X при S = 34.99999. ( нужна формула ) При этом X должен быть равен 2,1666667
using System;
namespace ConsoleApp27
{
class Program
{
static void Main(string[] args)
{
Console.ForegroundColor = ConsoleColor.Green;
for(double x = 0; x < 3; x = x + 0.0000001)
{
}
int s = 0;
for (int i = 1; i <= 18; i++)
{
s = s + (x % i); i++;
if (s > 34.999999)
{
if (s < 35.000006) ;
}
}
Console.WriteLine("x=" + x);
Console.WriteLine("s=" + s);
Console.ReadKey();
}
}
}