the.bay.news

Having trouble with the parse function

Julia Programming Language
Having trouble with the parse function
Hey all, I´m trying to make a very simple code where the user types a radius and julia returns the calculated area and circumference of a circle with that radius. println(“circle.jl”); println(“Escolha um raio”); raio = readline(); parse(Int64, raio); print(2*π*raio); print(2*π*raio) However, it says there is a Method Error; no method matching. What is the problem here? Also, i´d love suggestions of better/simpler ways to write the code if you have any. Thanks in advance.

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.