Advertisement
Teerathornmoon3

Dojo Challenge #1

May 4th, 2020
484
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.17 KB | None | 0 0
  1. local range = 1000
  2. local total = 0
  3.  
  4. repeat
  5.   if range % 3 == 0 or range % 5 == 0 then
  6.     total = total + 1
  7.   end
  8.   range = range - 1
  9. until range <= 0
  10.  
  11. print(total)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement