Write a program to input two angles calculate and display whether they are complementary or supplementary and if they are complementary angle then calculate sign value of the angle otherwise cos value of the angle?

1
Comment has been deleted
sine or sign? because they're different

Answers

2016-05-06T11:01:55+05:30
It's a c# program.


using System;namespace WorkSpace
{
    class Program
    {
        static void Main()
        {
            Console.WriteLine("Angles:");
            int Angle1 = Int32.Parse(Console.ReadLine());
            int Angle2 = Int32.Parse(Console.ReadLine());            if (Angle1 + Angle2 == 90)
            {
                Console.WriteLine("They're complementary.");
                Console.WriteLine("And Their sine is " + (Math.Sin(Angle1 + Angle2)));
            }
            else
                Console.WriteLine("They're not complementary.");            Console.ReadLine();
        }
    }
}
0