示例#1
0
        static void Main(string[] args)
        {
            // BouncingBall ball = new BouncingBall();
            double result = BouncingBall.bouncingBall(3.00, 0.66, 1.50);

            Console.WriteLine("Mother has seen the ball " + result + " times.");
            // Close the console window
            Console.ReadKey();
        }
示例#2
0
 static void Main(string[] args)
 {
     BouncingBall.bouncingBall(3.0, 0.66, 1.5);
     BouncingBall.bouncingBall(30.0, 0.66, 1.5);
 }