0
c# code
int[] arr = {0, 5, 3, 2, 1 }; foreach (int item int arr) { Console.WriteLine(item); }
3 Réponses
+ 7
CHANGE:
foreach (int item int arr)
TO:
foreach (int item in arr)
Your problem is that you put INT instead of IN for the foreach function.
+ 2
int[] arr = {0, 5, 3, 2, 1 };
foreach (int item
in
arr) {
Console.WriteLine(
item
);
}
0
you have to say:
int[] arr = {0, 5, 3, 2, 1 };
foreach (int item in arr) {
Console.WriteLine(item);
}