carrots084

Untitled

Feb 5th, 2018
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.20 KB | None | 0 0
  1. --JS
  2. for(i=1;i<101;i++){
  3.     s="";
  4.     for(j=1;j<=i;j++){
  5.         if(i%j<1) {
  6.             s+=j+" ";
  7.         }
  8.     }
  9. print(s);
  10. }
  11.  
  12. --Lua
  13. for i=1,100 do
  14.     for j=0,i do
  15.         if i%j<1 then
  16.             io.write(j.." ")
  17.         end
  18.     end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment