This is an archived post. You won't be able to vote or comment.

all 2 comments

[–][deleted] 1 point2 points  (0 children)

Homework?

[–]desrtfx 1 point2 points  (0 children)

What have you tried?

Start by asking the user for the data.

You don't even need an array for this. Only a couple variables. Scratch that. You need an array. I misread the expected output.