How to read user input in c# console

后端 未结 4 1777
[愿得一人]
[愿得一人] 2021-01-16 11:45

I guess this should be very simple to you guys, but very difficult to me because im new to c#.

I have a simple \"pacient\" class.

public class Pacien         


        
4条回答
  •  北海茫月
    2021-01-16 11:54

    You can get user input via Console.Read(); you need to get each user input

    Console.WriteLine("Enter First Name :");
    string FirstName = Console.ReadLine();
    

提交回复
热议问题