#if 0
/*ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â To the extent possible under law, Justine Tunney has waived      â
â all copyright and related or neighboring rights to this file,    â
â as it is written in the following disclaimers:                   â
â   â¢ http://unlicense.org/                                        â
â   â¢ http://creativecommons.org/publicdomain/zero/1.0/            â
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ*/
#endif
#include "libc/calls/calls.h"
#include "libc/fmt/conv.h"
#include "libc/fmt/itoa.h"

/**
 * @fileoverview Prints sequence of numbers.
 */

int main(int argc, char *argv[]) {
  long a, b, i;
  char buf[21], *p;
  switch (argc) {
    case 2:
      a = 1;
      b = strtol(argv[1], NULL, 0);
      break;
    case 3:
      a = strtol(argv[1], NULL, 0);
      b = strtol(argv[2], NULL, 0);
      break;
    default:
      return 1;
  }
  for (i = a; i <= b; ++i) {
    p = buf;
    p = FormatInt64(p, i);
    *p++ = '\n';
    write(1, buf, p - buf);
  }
}
