Skip to content

Instantly share code, notes, and snippets.

@GeriG34
Last active February 10, 2025 03:50
Show Gist options
  • Save GeriG34/7118a6660ed5c81bd6dccf308d319f21 to your computer and use it in GitHub Desktop.
Save GeriG34/7118a6660ed5c81bd6dccf308d319f21 to your computer and use it in GitHub Desktop.
namespace ConsoleApp8
{
internal class Program
{
static void Main(string[] args)
{
int counter = 0;
int determinant;
Console.WriteLine("Введите число в диапазоен от 10 до 25");
int number = Convert.ToInt32(Console.ReadLine());
for (int i = 50; i < 151; i++)
{
determinant = i;
while (determinant > 0)
{
determinant = determinant - number;
}
if (determinant == 0)
{
counter += 1;
}
Console.WriteLine(counter);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment