CJCoding With Joseph
← Back to Question List

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

Topics:
C# Quiz #28

foreach Doubling

easyLoops

What does this code print?

📄 Code

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