From 61b6ddcf56e94baf58080d65b70d304f24fbd5e4 Mon Sep 17 00:00:00 2001 From: uerbzr Date: Mon, 12 Aug 2024 13:00:08 +0100 Subject: [PATCH 1/2] attempted first question --- csharp-fundamentals-primitive-types.Main/Core.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csharp-fundamentals-primitive-types.Main/Core.cs b/csharp-fundamentals-primitive-types.Main/Core.cs index 9150d10..be2f485 100644 --- a/csharp-fundamentals-primitive-types.Main/Core.cs +++ b/csharp-fundamentals-primitive-types.Main/Core.cs @@ -11,7 +11,7 @@ public Core() { } public static int numThree = 32; // 1. Change the value of the member below to be the result of adding numOne and numTwo together - public int numOnePlusTwo = 0; + public int numOnePlusTwo = numOne + numTwo; // 2. Change the value of the member below to be the result of multiplying numThree by numTwo public int numThreeTimesNumTwo = 0; From 6e6f8f2a0c4b068ccab473ad871e9de116cc1d0b Mon Sep 17 00:00:00 2001 From: uerbzr Date: Mon, 12 Aug 2024 13:04:31 +0100 Subject: [PATCH 2/2] updated 2nd question --- csharp-fundamentals-primitive-types.Main/Core.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csharp-fundamentals-primitive-types.Main/Core.cs b/csharp-fundamentals-primitive-types.Main/Core.cs index be2f485..d38b736 100644 --- a/csharp-fundamentals-primitive-types.Main/Core.cs +++ b/csharp-fundamentals-primitive-types.Main/Core.cs @@ -14,7 +14,7 @@ public Core() { } public int numOnePlusTwo = numOne + numTwo; // 2. Change the value of the member below to be the result of multiplying numThree by numTwo - public int numThreeTimesNumTwo = 0; + public int numThreeTimesNumTwo = numThree * numTwo; // 3. Change the value of the member below to be the result of dividing numThree by numOne public int numThreeDividedByNumOne = 0;