Julia Program to print step of 10s using collect method
Program
# Julia program to print Array of step 10 using collect()
println("Printing 10's from 0 to 100")
array1 = collect(0:10:100)
println(array1)
Output
$ julia print-step-of-10-using-collect-method.jl
Printing 10's from 0 to 100
[0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100]