题目
题目

EPRO001 Week 3 Concept Check

单项选择题

Write a for loop to iterate through the numbers 1 to 20

选项
A.for(int i =1; i<=20; i++)
B.for(int i =1; i<20; i++)
C.for(int i =1; i<=19; i++)
D.None of the option given
查看解析

查看解析

标准答案
Please login to view
思路分析
The task presents a simple programming question about a for loop to iterate through the numbers 1 to 20. Let's evaluate each option in turn. Option 1: 'for(int i =1; i<=20; i++)' This loop starts at i = 1, continues while i <= 20, and increments i by 1 each iteration. This e......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!