Separate array elements without adding spaces

can anyone tell me how to separate the elements of an array automatically.e.g
A=[1234] to A=[1 2 3 4] without giving any space

Welcome! I’ve moved this to a new topic as it’s a fairly distinct question.

When you type 1234 you’re typing the number one thousand two hundred thirty four. If you want to split it into its digits, you can ask for digits(1234), but that’ll list them “backwards,” so you can reverse them.

julia> digits(1234)
4-element Vector{Int64}:
 4
 3
 2
 1

julia> reverse(digits(1234))
4-element Vector{Int64}:
 1
 2
 3
 4
3 Likes

thnx a lot

I am the basic learner of julia, and stuck with this question, can anyone help me out.

Q.
Write a Julia program that takes 9 numbers from user and computes the minimum and maximum
of those 9 numbers, using for loop.

https://docs.julialang.org/en/v1/manual/variables/
https://docs.julialang.org/en/v1/manual/control-flow/
https://docs.julialang.org/en/v1/base/math/#Base.min
https://docs.julialang.org/en/v1/base/math/#Base.max