예제 #1
0
    // hourAngle = 0
    // minuteAngle = 0

    static void Main()
    {
        Console.WriteLine("To find the angle of the clock, enter a number between 1 and 12");
        double hourInput   = Convert.ToDouble(Console.ReadLine());
        double minuteInput = Convert.ToDouble(Console.ReadLine());

        clock  co = new clock();
        double angle;

        angle = co.GetAngle(hourInput, minuteInput);

        Console.WriteLine("the angle is :" + angle);
        //GetAngle(hourInput,minuteInput);
        //  Console.WriteLine(GetAngle(""));
        //Console.ReadLine();
    }
예제 #2
0
    // hourAngle = 0
    // minuteAngle = 0

    static void Main()
    {
        Console.WriteLine("To find the angle of the clock, enter a number between 1 and 12 for hours hand");
        double hourInput = Convert.ToDouble(Console.ReadLine());

        Console.WriteLine("Enter a number between 1-59 for the minutes hand");
        double minuteInput = Convert.ToDouble(Console.ReadLine());

        clock  co = new clock();
        double angle;

        angle = co.GetAngle(hourInput, minuteInput);

        Console.WriteLine("The angle is " + angle + " degrees!");
        //GetAngle(hourInput,minuteInput);
        //  Console.WriteLine(GetAngle(""));
        //Console.ReadLine();
    }