参考答案:
doublex,y,z;
Console.WriteLine("请输入一个数:");
x=double.Parse(Console.ReadLine());
Console.WriteLine("请输入一个数:");
y=double.Parse(Console.ReadLine());
Console.WriteLine("请输入一个数:");
z=double.Parse(Console.ReadLine());
Console.WriteLine("{0,10:f3}",x);
Console.WriteLine("{0,10:f3}",y);
Console.WriteLine("{0,10:f3}",z);
//Console.WriteLine("{0:f3}",x);
//Console.WriteLine("{0:f3}",y);
//Console.WriteLine("{0:f3}",z);
我来回答:
最新试题