Skip to content

Commit e340f2c

Browse files
authored
Merge pull request #102 from IvanPodyanov/patch-14
Update Exercise.csx
2 parents 1cde0d5 + c0ee9a1 commit e340f2c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/95-loops/45-mutators/Exercise.csx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ class App
77
var result = "";
88
while (i < str.Length)
99
{
10-
var current = str[i];
10+
var currentChar = str[i];
1111
if ((i + 1) % n == 0)
1212
{
13-
result = result + char.ToUpper(current);
13+
result += char.ToUpper(currentChar);
1414
}
1515
else
1616
{
17-
result = result + current;
17+
result += currentChar;
1818
}
1919

2020
i++;

0 commit comments

Comments
 (0)