Which part of this is giving you trouble? Getting input from the user? Storing a value in an array? Displaying an array?

Split your program up into smaller pieces, then create an SSCCE for the...