Non è chiaro il tuo problema ma se hai studiato gli array dovresti risolvere ...