Julia Program to print step of 10s using range and collect method

Program

# Julia program to print Array of step 10 using collect() and range()
println("Printing 10's from 0 to 100")
array1 = collect(range(0, stop=100, step=10))
println(array1)

Output

$ julia demo-array-step-of-10-using-collect-range.jl 
Printing 10's from 0 to 100
[0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100]

Interactive Mode

``` julia> collect(range(0, stop=100, step=10)) 11-element Array{Int64,1}: 0 10 20 30 40 50 60 70 80 90 100 ```