Ranges - iteration
You've taken in a lot of information about ranges. Let's try to put some of it into practice. If we were to iterate over the range as shown below using a for loop, how many values would we print to the console?
my_range = 1:2:10
for value in my_range
println(value)
end
Bài tập này là một phần của khóa học
Intermediate Julia
Bài tập tương tác thực hành
Biến lý thuyết thành hành động với một trong các bài tập tương tác của chúng tôi
Bắt đầu bài tập