[Ruby][백준] 팩토리얼 (10872)

PersesTitan·2022년 8월 28일
0

RubyBaekJoon

목록 보기
41/46


해설
N!값을 출력하면 됩니다.

코드 경고선


i = gets.to_i
total = 1
(1..i).each do |j|
  total *=j
end

puts total
profile
안녕하세요 페르세스 티탄입니다! 부족한 부분이 많이 있겠지만 잘부탁드립니다.

0개의 댓글