Pushok

SmallTranslator testing

Mar 14th, 2014
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. decl a b c d;
  2.  
  3. in a, b, c;
  4.  
  5. func DoSomething(a b)
  6.     if a < b then
  7.         out a;
  8.     else
  9.         out b;
  10.     end
  11.    
  12.     return a + b;
  13. end
  14.  
  15. while a < b do
  16.     if a > b then
  17.         if a == b - 3 then
  18.             a = b;
  19.             b = a;
  20.         end
  21.         out a;
  22.     else
  23.         out b;
  24.     end
  25.    
  26.     a = a + 2;
  27.     b = b + 1;
  28. end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment