コード例 #1
0
 public override void Run()
 {
     radius = InputOutput.CollectDouble("Please input the radius");
     CalcualteVolume();
     CalculateSurfaceArea();
     OutputResault();
 }
コード例 #2
0
 public override void Run()
 {
     length = InputOutput.CollectDouble("Please input the length");
     CalcualteArea();
     CalcualtePerimeter();
     OutputResaults();
 }
コード例 #3
0
 public override void Run()
 {
     radius = InputOutput.CollectDouble("radius");
     CalculateArea();
     CalculatePerimeter();
     OutputResault();
 }
コード例 #4
0
 public override void Run()
 {
     radius = InputOutput.CollectDouble("radius");
     height = InputOutput.CollectDouble("height");
     CalculateSA();
     Console.WriteLine($"the surface area is {surfaceArea}");
     CalculateVolume();
     Console.WriteLine($"the Volume is {volume}");
 }
コード例 #5
0
 public override void Run()
 {
     length = InputOutput.CollectDouble("Please enter base of Cuboid");
     width = InputOutput.CollectDouble("Please enter side length of Cuboid");
     height = InputOutput.CollectDouble("Please enter height of Cuboid");
     CalculateArea();
     Console.WriteLine($"the surface area is {area}");
     CalculatePerimeter();
     Console.WriteLine($"the Volume is {perimeter}");
 }
コード例 #6
0
 public override void Run()
 {
     length = InputOutput.CollectDouble("cuboid");
     width  = InputOutput.CollectDouble("cuboid");
     height = InputOutput.CollectDouble("cuboid");
     CalculateSA();
     Console.WriteLine($"the surface area is {surfaceArea}");
     CalculateVolume();
     Console.WriteLine($"the Volume is {volume}");
 }
コード例 #7
0
 void Input()
 {
     length = InputOutput.CollectDouble("Edge Length");
 }
コード例 #8
0
 void Input()
 {
     length = InputOutput.CollectDouble("Height");
     radius = InputOutput.CollectDouble("Radius");
 }