TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Khoi
NA
18
0
Array list
Oct 26 2009 8:57 AM
Below is my code
class Program
{
static void Main(string[] args)
{
int[] input = new int[5];
Console.WriteLine("Pls input 5 nums:\n");
for (int i = 0; i < 5; i++)
{
Console.Write("Number [" + i + "] is ");
input[i] = Convert.ToInt32(Console.ReadLine());
}
Console.WriteLine("Nums u just entered are: ");
for (int i = 0; i < 5; i++)
{
Console.Write(input[i] + " ");
Console.ReadLine();
}
}
}
}
I expect the outcome lists all the numbers horizontally as a array instead of entering many times. Please advise how to do that.
Thanks,
Ice
Reply
Answers (
3
)
C# .net cf 3.5 IDisposable, disposing objects
What is AdRotator control?Usage of AdRotator?