SHARE
TWEET

Untitled

a guest May 19th, 2017 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sum = 0; i=0;
  2. for i in 1..999
  3.     if (i%5==0 || i%3==0)
  4.         sum += i
  5.     end
  6. end
  7. puts "FINAL IS " + String(sum)
RAW Paste Data
Top