Computer Science, asked by salujapari17, 1 month ago

The angles of a quadrilateral are in the ratio 3:4:5:6. Write a program to find
and display all of its angles. (Hint: The sum of angles of a quadrilateral
360)​

Answers

Answered by saksham70078
9

public static void main(String args[]) {

       int r1 = 3, r2 = 4, r3 = 5, r4 = 6;

       double x = 360 / (double)(r1 + r2 + r3 + r4);

       double a = r1 * x;

       double b = r2 * x;

       double c = r3 * x;

       double d = r4 * x;

       System.out.println("Angle A = " + a);

       System.out.println("Angle B = " + b);

       System.out.println("Angle C = " + c);

       System.out.println("Angle D = " + d);

Similar questions