mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2025-12-06 05:32:03 +01:00
11 lines
243 B
C#
11 lines
243 B
C#
using Ch04Ex02PrimeFactorsLib;
|
|
|
|
Write("Enter a number between 1 and 1000: ");
|
|
|
|
if (int.TryParse(ReadLine(), out int number))
|
|
{
|
|
WriteLine(format: "Prime factors of {0} are: {1}",
|
|
arg0: number,
|
|
arg1: Primes.PrimeFactors(number));
|
|
}
|