Skip to content

Commit 31c0443

Browse files
Update csharp-scenarios/01-Alien-Translator.ipynb
Co-authored-by: Katie Savage <[email protected]>
1 parent b166de9 commit 31c0443

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

csharp-scenarios/01-Alien-Translator.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -389,10 +389,10 @@
389389
"// split the string into substrings\n",
390390
"string[] variableCollection = sentence.Split(' ');\n",
391391
"\n",
392-
"foreach(var variableName in variableCollection) \n",
392+
"for(var i = 0; i < variableCollection.Length; i++) \n",
393393
"{ \n",
394394
" // statements to be executed \n",
395-
" Console.Write(variableName + \" \");\n",
395+
" Console.Write(variableCollection[i] + \" \");\n",
396396
"} "
397397
],
398398
"outputs": [

0 commit comments

Comments
 (0)