scan array using for loop in C code example Example: scan numbers into array c for (i = 0; i < 5; i++) scanf("%d", &array[i]);