Advertisement
electricmaster

Project Euler #1

Nov 19th, 2015
943
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. OBTW
  2.   This is Project Euler problem #1 in LOLCODE
  3.   Why? I have no idea
  4.   Lets find the sum of all multiples of 3 or 5 below 1000
  5. TLDR
  6.  
  7. HAI 1.2
  8. CAN HAS STDIO?
  9.  
  10. I HAS A ANSWER ITZ 0
  11.  
  12. IM IN YR LOOP UPPIN YR VAR TIL BOTH SAEM VAR AN 1000
  13.   BOTH SAEM MOD OF VAR AN 3 AN 0
  14.   EITHER OF IT AN BOTH SAEM MOD OF VAR AN 5 AN 0
  15.   O RLY?
  16.     YA RLY
  17.       ANSWER R SUM OF ANSWER AN VAR
  18.   OIC
  19. IM OUTTA YR LOOP
  20.  
  21. VISIBLE "YR ANSWER IZ " ANSWER
  22. KTHXBYE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement