Home > Net >  Turn to two Numbers
Turn to two Numbers

Time:09-19

Don't quite understand what went wrong, thank you for answer

CodePudding user response:

Sample input format does not conform to with him, someone else is a number add a space after the input plus the number

CodePudding user response:

Input a line, and then the split, then output the result

CodePudding user response:

 
String x;
X=Console. ReadLine ();
String [] array=x.S plit (");
Console. WriteLine (int. Parse (array [0]) + int. Parse (array [1]));
Console.ReadLine();
  •  Tags:  
  • C#
  • Related