C sharp strings input RRS feed

  • Question

  • Hi,

    how can I write a program that allows input of more than 10 students and related marks and print out on the console.

    Friday, October 27, 2017 11:20 PM

All replies

  • The basics (and I mean the basics) are shown in the following post to get back information in a loop in a console app.

    You would collect information entered into a List<T> where T is a class for a Student which a property that would have student marks. Once all data has been entered you would have a method that iterates the list and using Console.WriteLine print out results to the console.

    Try that out, if and when you get stuck come back, present you code and clearly explain where you are having issues.

    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
    VB Forums - moderator
    profile for Karen Payne on Stack Exchange, a network of free, community-driven Q&A sites

    Saturday, October 28, 2017 8:38 AM
  • Hi Likuji,

    Thank you fro posting here.

    For your question, could you provide more details?

    If you want to input more than 10 students and related marks, do you want to create new records for these students or find the name of students in the list and then input the marks?

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Monday, October 30, 2017 6:47 AM