|
-
April 28th, 2010, 01:46 AM
#1
Simple C# Question
I have a simple c# question about how to grab a users input and store it into an Array
public void RunExercise()
{
int[] userIn = new int[9];
Console.WriteLine("User, please enter number 0 - 10");
}
This is what I have so far...
I just want it to ask the user to enter numbers 0-10
and then store them in the array
and then just sum up the numbers and print it out...
If anyone could help me that would be much appreciated
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|