[ADD] Julia variables

This commit is contained in:
Eduardo Cueto Mendoza 2020-05-05 11:14:02 -06:00
parent d660a68f84
commit d1644ae8f9
1 changed files with 44 additions and 0 deletions

44
05_Variables.jl Executable file
View File

@ -0,0 +1,44 @@
x = 3
println(typeof(x))
x = "hello"
println(typeof(x))
øl = "beer"
θ = 44
δαω = "hi"
println(δαω)
# π = 3
println(π)
function myadd(x,y)
a::Int8 = 0
b::Int8 = 0
a = x
b = y
return a + b
end
function valuemix()
a::Int16 = 'A'
b::Int16 = true
c::Vector{Int8} = []
c = [2,4,6]
(a,b,c)
end
function mixup(args)
a::Int16 = 'A'::Int16
end
for i in 1:5
local y = i
end
const k = 1
v = 1