+ 2

Generate lists

Hi, I'm new to c# and programming in general and I need to make a program that let the user input number and save those number into a list until the user inputs "fin", if the user inputs "fin de seccion" the program should allow him to input another set of numbers and save those in another list I don't in know how to create those lists, help? thanks and sorry for my english

1st Jun 2017, 9:47 PM
Alvaro Brand贸n Piaggio
Alvaro Brand贸n Piaggio - avatar
4 Answers
+ 1
thank you very much for your answer, but the code should generate any number of lists as long as the user keeps input "fin de seccion"
1st Jun 2017, 11:21 PM
Alvaro Brand贸n Piaggio
Alvaro Brand贸n Piaggio - avatar
+ 1
I'm sorry what I meant is everytime the user inputs "fin de seccion" the program should let the user input numbers and then put those in a new list. sorry I don't have anyone to do the translation for me, I hope you understand now and thank you very much for your help
2nd Jun 2017, 3:32 AM
Alvaro Brand贸n Piaggio
Alvaro Brand贸n Piaggio - avatar
+ 1
"fin" ends the program and you can have any number of lists, one for each time the user inputs "fin de seccion" for example: 1 5 58 41 fin de seccion 23 47 5 1 4 84 fin de seccion 1 18 45 14 74 fin
2nd Jun 2017, 3:59 AM
Alvaro Brand贸n Piaggio
Alvaro Brand贸n Piaggio - avatar
+ 1
thank you very much! Can I ask you again if I have more problems haha I really thank you
2nd Jun 2017, 4:28 AM
Alvaro Brand贸n Piaggio
Alvaro Brand贸n Piaggio - avatar