Computer Science, asked by Adhip, 1 year ago

Write a program in java to calculate whether the angles are complementary or supplementary?

Answers

Answered by ajitajain7
2
import java.util.*; class angle { void main() { Scanner sc=new Scanner(System.in); int a; System.out.println("Enter the angle:"); a=sc.nextInt(); if((a<=90)&&(a>0)) System.out.println("The angle is complementary"); else System.out.println("The angle is supplementary"); } }
Similar questions