Files
ruby-examples-1/level3/21.rb
2026-01-15 14:01:21 +09:00

10 lines
119 B
Ruby
Executable File

#!/usr/bin/ruby
# -*- coding: utf-8 -*-
=begin
숫자 배열의 합을 구하기
=end
arr = [1,3,5,7,9]
puts arr.sum