write a program in q basic to accept the angle of a triangle and check whether the angle is right angle , obtuse angle or accute angle
Answers
Answer:
Input : arr[] = { 2, 3, 9, 10, 12, 15 }.
Input : arr[] = { 2, 3, 9, 10, 12, 15 }.Output :
Input : arr[] = { 2, 3, 9, 10, 12, 15 }.Output :Acute Triangle: 2
Input : arr[] = { 2, 3, 9, 10, 12, 15 }.Output :Acute Triangle: 2Right Triangle: 1
Input : arr[] = { 2, 3, 9, 10, 12, 15 }.Output :Acute Triangle: 2Right Triangle: 1Obtuse Triangle: 4
Input : arr[] = { 2, 3, 9, 10, 12, 15 }.Output :Acute Triangle: 2Right Triangle: 1Obtuse Triangle: 4Acute triangles that can be formed are {10, 12, 15}
Input : arr[] = { 2, 3, 9, 10, 12, 15 }.Output :Acute Triangle: 2Right Triangle: 1Obtuse Triangle: 4Acute triangles that can be formed are {10, 12, 15} and { 9, 10, 12 }.
Input : arr[] = { 2, 3, 9, 10, 12, 15 }.Output :Acute Triangle: 2Right Triangle: 1Obtuse Triangle: 4Acute triangles that can be formed are {10, 12, 15} and { 9, 10, 12 }.Right triangles that can be formed are {9, 12, 15}.
Input : arr[] = { 2, 3, 9, 10, 12, 15 }.Output :Acute Triangle: 2Right Triangle: 1Obtuse Triangle: 4Acute triangles that can be formed are {10, 12, 15} and { 9, 10, 12 }.Right triangles that can be formed are {9, 12, 15}.Obtuse triangles that can be formed are {2, 9, 10},
Input : arr[] = { 2, 3, 9, 10, 12, 15 }.Output :Acute Triangle: 2Right Triangle: 1Obtuse Triangle: 4Acute triangles that can be formed are {10, 12, 15} and { 9, 10, 12 }.Right triangles that can be formed are {9, 12, 15}.Obtuse triangles that can be formed are {2, 9, 10}, {3, 9, 10}, {3, 10, 12} and {9, 10, 15}.