// Sesión 1, programa 2. Dibujen los marcos en cada punto que pide lab/README.md.
#include <stdio.h>

const int STEP = 5;

int next_ticket(void) {
    static int last = 100;
    int before = last;
    last = last + STEP;
    return before;
}

int main(void) {
    int last = 0;

    for (int i = 0; i < 3; i++) {
        int last = next_ticket();
        printf("ticket %d\n", last);
    }
    printf("last = %d\n", last);
    return 0;
}
