Что выполняется в этом программе?
using System;
class Program
{
public static void Main()
{
int n;
while (Int32.TryParse(Console.ReadLine(), out n) && n > 0 && n <= 365) // вот здесь объясните
{
Console.WriteLine(n % 7 + 1); // вот здесь объясните
Console.ReadKey();
}
}
}
using System;
class Program
{
public static void Main()
{
int n;
while (Int32.TryParse(Console.ReadLine(), out n) && n > 0 && n <= 365) // вот здесь объясните
{
Console.WriteLine(n % 7 + 1); // вот здесь объясните
Console.ReadKey();
}
}
}
