1 using System;
 2 using System.Collections.Generic;
 3 using System.Text;
 4 
 5 namespace Test
 6 {
 7     class Program
 8     {
 9         static void Main(string[] args)
10         {
11             int number;
12             Console.WriteLine("Input number:");
13             number = Convert.ToInt32(Console.ReadLine());
14             for (int i = 999; i >= 100; i--)
15             if (number % i == 0)
16             {
17                 Console.Write("The max factor with 3 digits in {0} is {1}", number, i);
18                 break;
19             }
20         }
21     }
22 }

相关文章:

猜你喜欢
  • 2022-12-23
  • 2021-10-13
  • 2021-11-27
  • 2021-12-14
  • 2022-12-23
  • 2021-10-06
相关资源
相似解决方案