We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b166de9 commit 31c0443Copy full SHA for 31c0443
csharp-scenarios/01-Alien-Translator.ipynb
@@ -389,10 +389,10 @@
389
"// split the string into substrings\n",
390
"string[] variableCollection = sentence.Split(' ');\n",
391
"\n",
392
- "foreach(var variableName in variableCollection) \n",
+ "for(var i = 0; i < variableCollection.Length; i++) \n",
393
"{ \n",
394
" // statements to be executed \n",
395
- " Console.Write(variableName + \" \");\n",
+ " Console.Write(variableCollection[i] + \" \");\n",
396
"} "
397
],
398
"outputs": [
0 commit comments