Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x=rand(1000)
- function Global_variable_loops()
- s=0
- for i in x
- s += i
- return s
- end
- function Sum_args()
- s=0
- for i in x
- s +=i
- return s
- end
- @time Global_variable_loops()
- @time Sum_args()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement