Fixed compilation error/typo (#20933)

* Fixed compilation error

Variable not named. Corrected it to match.

* Fixed formatting
This commit is contained in:
Dominic
2018-11-04 00:21:47 -10:00
committed by Manish Giri
parent d9221aadd9
commit f3b64dc4f9

View File

@ -21,7 +21,7 @@ class Calc
{ {
int a = 4; int a = 4;
int b = 3; int b = 3;
int sum = Sum(a, b); int result = Sum(a, b);
Console.WriteLine($"The sum of {a} and {b} is {result}"); Console.WriteLine($"The sum of {a} and {b} is {result}");
// To keep the console from closing // To keep the console from closing
@ -35,4 +35,4 @@ class Calc
## Output: ## Output:
``` ```
> The sum of 4 and 3 is 7 > The sum of 4 and 3 is 7
`` ```