Computer Science, asked by melchizedek2468, 10 months ago

Write a pograme to accept the two anhles calcute and display whether they are complementary angles or supplementary angles as per the users choice

Answers

Answered by utkarshmishra9819
0

Answer:

class prog

{

void main(int a,int b)

{

if((a+b)==90)

{System.out.println("Complementary Angles ");}

else if((a+b)==180)

{System.out.println(" Suplementary Angles");}

else

{

System.out.println("the data inputis erroneous ");}

}

}

Similar questions