problem_6.lua 145 B

123456789101112131415
  1. #!/usr/bin/lua
  2. --returns the value of a and b
  3. function values_of_a_and_b (c)
  4. c = 998
  5. a = 498
  6. while c ~= 499 do
  7. c = c - 1
  8. print(c)
  9. end