How do I declare a 2 digit integer in an array? So I would not have to write it out because I got to have a point system from 1 to 60 that needs to be recorded
int[] strScore = new int[60] {1, 2, 3, /*...,*/ 59, 60};
How do I declare a 2 digit integer in an array? So I would not have to write it out because I got to have a point system from 1 to 60 that needs to be recorded
int[] strScore = new int[60] {1, 2, 3, /*...,*/ 59, 60};
If you trying to generate all the numbers between 1 and 60 without declaring them explicitly.
Try:
int[] scores = Enumerable.Range(1, 60).ToArray();