Start typing or press to get going!
The csharp code you'll be racing to type out is all about:
A for each loop means the code in the loop will run once for each item in an array.
This means it is a count-controlled loop because the number of times the loop will run is not dependent on a condition being met: you know how many times it will repeat in advance.
A for each loop is an example of definite iteration because the number of times the loop repeats is clearly defined.
This example will display the lyrics for "The wheels on the ... go round and round" for an array containing the strings "bus", "car" and "tram"
0 WPM | |
0% | |
0s | |
0% |