#include <stdio.h>
#include <stdlib.h>

#define SIZE 4
#define STRING_SIZE 30

int main(void)
{
    char strings[SIZE][STRING_SIZE];
    int total = 0;

    for (int i = 0; i < SIZE; ++i)
    {
        printf("Enter integer string %d: ",
               i + 1);

        scanf("%29s", strings[i]);

        total += (int)strtol(strings[i], NULL, 10);
    }

    printf("\nThe total is: %d\n", total);

    return 0;
}