Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
vangj committed May 4, 2023
1 parent 4b7f676 commit 244b4a9
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
28 changes: 28 additions & 0 deletions app7-addition/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
internal class Program
{
private static void Main(string[] args)
{
Console.WriteLine("Addition Table Application");

while (true) {
Console.Write("num: ");
var query = Console.ReadLine();

if (query is not null) {
if (query.ToLower().Equals("q")) {
break;
}

var num = Int32.Parse(query);

for (int i = 0; i <= 12; i++) {
Console.WriteLine($"{i} + {num} = {i + num}");
}

Console.WriteLine(new String('-', 15));
}
}

Console.WriteLine("Thanks for using me!");
}
}
11 changes: 11 additions & 0 deletions app7-addition/app7-addition.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<RootNamespace>app7_addition</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>

0 comments on commit 244b4a9

Please sign in to comment.