Computer Science, asked by drswaticmadhukar, 1 year ago

REM To find whether the triangle is a right angled triangle or not
__________ "Enter first angle",A
INPUT"Enter second angle",B
INPUT"Enter third angle",_______
___________THEN
PRINT"Right-angled triangle"
___________
PRINT"Not a right-angled triangle"
____________ IF

Answers

Answered by aryan7274
0
public void Triangle
{
Sopln"Enter the angles of triangle";
int a= sc.nextInt();
int b=sc.nextInt();
int c=sc.nextInt();
if(a==90||b==90||c==90)
{
Sopln("Right Angled Triangle");
}
else
{
Sopln("Not A Right Angled Triangle");
}
}
Similar questions