Horje
how to store user input into list c# Code Example
how to store user input into list c#
List<string> ItemList = new List<string>();
Console.WriteLine("Items Added To Inventory Are: "); // Outputs List in reverse order. (Recent input first).
for (int i = 0; i < 10; i++) // Continue For Loop until i is < the needed amount.
{
    Console.WriteLine($"{i+1}: Enter Item Name To Add To Inventory"); // Asks for user input into array.
    var ListInput = Console.ReadLine(); // User inputs value into field.
    ItemList.Add(ListInput);
}




Csharp

Related
recursive reverse linked list Code Example recursive reverse linked list Code Example
create new object from generic c# Code Example create new object from generic c# Code Example
qtablewidget add image Code Example qtablewidget add image Code Example
c# add to array Code Example c# add to array Code Example
for loop Code Example for loop Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10