Skip to content

Commit

Permalink
Fix & Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
JonthueM committed Jul 28, 2020
1 parent a2273e0 commit fe2af9b
Show file tree
Hide file tree
Showing 25 changed files with 21 additions and 31 deletions.
Binary file removed 2020-step131-3Deep/.vs/step131-3Deep/v16/.suo
Binary file not shown.
Binary file not shown.
Binary file added 2020-step161-3Deep/.vs/step161-3Deep/v16/.suo
Binary file not shown.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text;
using System.Threading.Tasks;

namespace step131_3Deep
namespace step161_3Deep
{
class Operations
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text;
using System.Threading.Tasks;

namespace step131_3Deep
namespace step161_3Deep
{
class Program
{
Expand Down
Binary file not shown.
Binary file not shown.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30011.22
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "step131-3Deep", "step131-3Deep.csproj", "{8D6F1386-498E-42A0-89F1-639F198D6246}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "step161-3Deep", "step161-3Deep.csproj", "{8D6F1386-498E-42A0-89F1-639F198D6246}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
38 changes: 10 additions & 28 deletions 2020-step234-CatchThis/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,45 +10,27 @@ class Program
{
static void Main(string[] args)
{
Console.WriteLine("How Old Are You This Year?");
int age;
age = Convert.ToInt32(Console.ReadLine());

if (age >0)
{
int birthYear = age - 2020;
Console.WriteLine(birthYear);
}


try
{
Console.WriteLine("How Old Are You This Year?");
int age;
age = Convert.ToInt32(Console.ReadLine());

if (age == 0)
{
throw new ArgumentException("Please No Zero's");

}

}

catch (ArgumentException ex)
{
Console.WriteLine("Please No Zero's");
}
try
{
if (age < 0)
{
throw new ArgumentOutOfRangeException("Why So Negative");
}

}
catch (ArgumentOutOfRangeException i)
{
Console.WriteLine("Why So Negative");

int birthYear = age - 2020;
Console.WriteLine(birthYear);
}






Console.ReadLine();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]

0 comments on commit fe2af9b

Please sign in to comment.