题解 | #学生基本信息输入输出#
学生基本信息输入输出
https://www.nowcoder.com/practice/58b6a69b4bf943b49d2cd3c15770b9fd
public class Program { public static void Main() { string[] s = System.Console.ReadLine().Split(";"); string[] s1 = s[1].Split(","); System.Console.WriteLine("The each subject score of No. "+s[0]+" is {0:0.00}, {1:F2}, {2:F2}.", double.Parse(s1[0]),double.Parse(s1[1]),double.Parse(s1[2])); } }