+ 1
How to accept string input in arrays?? C#
3 Antworten
+ 3
Define specific delimiters like space, tab or comma and then use spliter
Ex:
User input "a, b, c, d"
var input = Console.ReadLine().Split(',') ;
+ 1
Use a loop to iterate the array elements. And handle the input to them.
0
I have tried it. But I'm trying to input a string,