Free help with homework

Why join Brainly?

  • ask questions about your assignment
  • get answers with explanations
  • find similar questions

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?
Comment has been deleted
sine or sign? because they're different


It's a c# program.

using System;namespace WorkSpace
    class Program
        static void Main()
            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)));
                Console.WriteLine("They're not complementary.");            Console.ReadLine();
0 0 0
The Brain
  • The Brain
  • Helper
Not sure about the answer?
Learn more with Brainly!
Having trouble with your homework?
Get free help!
  • 80% of questions are answered in under 10 minutes
  • Answers come with explanations, so that you can learn
  • Answer quality is ensured by our experts