daily pastebin goal
84%
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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top