From the keyboard in all string? Such as knock "" 3600", "but it is a type string
CodePudding user response:
What is you see readline returnsCodePudding user response:
Through the ReadLine returns the string, can pass int. J the Parse method such as transformationCodePudding user response:
Readline return value is a stringCodePudding user response:
Int I=int. Parse (Console. ReadLine ());CodePudding user response:
There is no way to allow the user to input a number directly, because if the user input cannot judge,Of course, also can write a method to force the user to input a number, but it actually involves some logic, Microsoft won't be able to deal with this kind of thing, it can only be leaving you personally to deal with,