Skip to content

Commit 9b5b5ad

Browse files
committed
FizzBuzz
- Update code comments
1 parent 2dcb5a9 commit 9b5b5ad

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed

.vs/VSWorkspaceState.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"\\FizzBuzz\\FizzBuzz",
66
"\\FizzBuzz\\FizzBuzz\\FizzBuzz"
77
],
8-
"SelectedNode": "\\FizzBuzz\\FizzBuzz\\FizzBuzz\\FizzBuzz.cs",
8+
"SelectedNode": "\\FizzBuzz\\FizzBuzz\\FizzBuzz\\Program.cs",
99
"PreviewInSolutionExplorer": false
1010
}

.vs/slnx.sqlite

0 Bytes
Binary file not shown.
-2 KB
Binary file not shown.

FizzBuzz/FizzBuzz/FizzBuzz/FizzBuzz.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static string FizzBuzzLogic(int N, int M)
2323
else if (i % 5 == 0) Sequence += "Buzz"; // If i is divisable by 5 with no remainder we add "Buzz" to the sequence
2424
else Sequence += i; // If it is not divisable by either with just add the current value of i to the sequence
2525

26-
if (i < M) Sequence += ", "; // If we are not equal to M yet, we add a comma and a space to sequence
26+
if (i < M) Sequence += ", "; // If we are not equal to M yet, we add a comma and a space to sequence, this ensures no comma on the end of the string
2727
} // End FOR
2828

2929
return Sequence; // Now that the FORR loop has ended we return the value of sequence

0 commit comments

Comments
 (0)