CJCoding With Joseph
15free / daySign inCreate account
Back to Multiple Choice Quiz

Select topics to narrow your question pool, then enable Random to jump to a random question matching your filters.

Topics

foreach Doubling

C# quiz · Question 28
easyLoops

What does this code print?

Code

1int[] nums = {1, 2, 3};
2foreach (int n in nums) {
3 Console.Write(n * 2);
4}