using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace 体积 { class Program { static void Main(string[] args) { double tj,a,b,c; Console.WriteLine("请输入第一个数字:"); a = Convert.ToDouble(Console.ReadLine()); Console.WriteLine("请输入第二个数字:"); b = Convert.ToDouble(Console.ReadLine()); Console.WriteLine("请输入第三个数字:"); c = Convert.ToDouble(Console.ReadLine()); tj = tiji(a,b,c); Console.WriteLine("体积为:"+tj); } public static double tiji(double x,double y,double z) { double v; v = x * y * z; return v; } } }