#!/usr/bin/ruby # -*- coding: utf-8 -*- =begin 1~100 중 3의 배수만 출력 =end (1..100).each do |item| puts item if (item % 3 == 0) end