Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
306 B
1
Indexable
Never
void insertBooks(Stack * stack) {

    int cuanto = 0, i = 0;
    Element element;

    printf("How many books do you want to insert? ");
    scanf("%d", &cuanto);

    for(i = 0; i < cuanto; i++) {
        printf("Book code: ");
        scanf("%d", &element);

        STACK_push(stack, element);
    }

}