How to fill up an array-Programming logic

I’m a bit reluctant asking this, since its super basic, anyhoo.

I have an assignment, and I need an array of user input numbers. So with the help of the internet, I wrote this, but I’m having a hard time trying to use it on my own so that I could like really understand it and not just know this specific snippet of code.

//array that stores the user input int[] storage=new int [100]; //reading the user input for(int i=0;i<100;i=i+1) { storage[i]=int.Parse(Console.ReadLine()); } 

Would really appreciate any good learning resources, cheers.

submitted by /u/Anon_nomis
[link] [comments]

Leave a Reply