Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Arrr! Keep these build artifacts off me ship!
bin/
obj/
*.user
*.suo
*.vs/
16 changes: 16 additions & 0 deletions NumberPrinter/NumberPrinter.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!-- Yo ho ho! This be the project file for our NumberPrinter app. -->
<!-- It tells the .NET SDK how to build this fine vessel of code. -->
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<!-- Arrr! We be buildin' an executable, not a library. -->
<OutputType>Exe</OutputType>
<!-- Target the .NET 10 framework — the newest ship in the fleet! -->
<TargetFramework>net10.0</TargetFramework>
<!-- Implicit usings keep our code clean as a freshly swabbed deck. -->
<ImplicitUsings>enable</ImplicitUsings>
<!-- Nullable reference types help us avoid the dreaded null kraken! -->
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
16 changes: 16 additions & 0 deletions NumberPrinter/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// =============================================================
// Ahoy, matey! Welcome aboard the NumberPrinter console app!
// This here program prints the numbers 1 through 10 to the
// console, as sure as the tide rolls in. Arrr!
// =============================================================

// Shiver me timbers! We be settin' sail on the main loop.
// We use a for-loop to count from 1 to 10, printin' each
// number to the standard output like a cannon volley!
for (int i = 1; i <= 10; i++)
{
// Fire the cannon! Print the current number to the console.
Console.WriteLine(i);
}

// Avast! All numbers have been printed. The voyage be complete!