mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2026-04-06 14:53:47 +00:00
Initial commit
This commit is contained in:
parent
e523533d17
commit
10cceacca6
50 changed files with 1280 additions and 0 deletions
10
vscode/Chapter04/Ch04Ex02PrimeFactorsApp/Program.cs
Normal file
10
vscode/Chapter04/Ch04Ex02PrimeFactorsApp/Program.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
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));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue