I\'m asking the user to input 5 numbers and store it into an array so I can send the values in a method and subtract 5 numbers from each array. When I use the:
You just need to parse the string being entered from the console to int first.You accept int by doing:
string
for(int i=0;i
Just like @Furkle said, it is always best to use TryParse() which enables you to perform exception handling. MSDN has a nice tutorial on this.
TryParse()