-
-
Save GeriG34/7118a6660ed5c81bd6dccf308d319f21 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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