Having trouble with array/loop

Hey I'm doing a program for an intro class and I can't seem to get my loop and sentinel working. Can anyone help?

Edit:Never mind seems like I figured it out.