Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local numbers = {1, 2, 5 ,6}
- local currentSum = 0
- for index = 1, #numbers do
- currentSum = currentSum + numbers[index]
- end
- print(currentSum)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement