Array : Why am I getting a segmentation fault from scanf loop?

Published --