answersLogoWhite

0

the periods in this method are to organize the spacing.

public String getTriangleType(int a1, int a2, int 23)

{

....if (a1+a2+a3!=180) return "Invalid Triangle";

....if (a1==90 a2==90 a3==90) return "Right";

....if (a1>90 a2>90 a3>90) return "Obtuse";

....return "acute";

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is the code of a c program that will read in a positive integer value and determine If the integer is a prime number and If the integer is a Fibonacci number?

see the program


Write a program that input a positive integer and prints a triangle using for loop?

write a program that reads in the size of the side of square and then pints a hollow square of that size out of asterisks and blanks?


Write a c program for 50 positive integers that are divisible by 7?

#include<stdio.h> main() { int i; for(i=1;i<=50;i++) { if (i%5!=0) printf("\n %d",i); } }


Was there a program called the triangle?

yea


Writes a c program to find the sum of all integers between 1 and n?

Write a program to find the number and sum of all integers from 100 to 300 that are divisible by 11


How can one assign a list of integers in Java?

Put statements at the start of ones code will allow one to have a list of integers in their Java program. If one does this then they will successfully have integers in their code.


How do you reverse of the answer program integers in C programming?

sense question Your makes no.


Write a program in c that prompt user with following lines add two integers test an integer for odd or even and quit?

write a program in C that prompts the user with the following lines: a) Add two integers c) Compare two integers for the larger t) Test an integers for odd or even q) Quit


How do you determine that an object is a triangle or not using a c program?

What do you mean by 'object'? If you have three points, you may want to know whether or not they form a triangle. Example: struct point { int x, y; } a, b, c; if ((b.x-a.x)*(c.x-a.x)+(b.y-a.y)*(c.y-a.y) != 0) puts ("Triangle");


8086 assembly program to sort a list of integers?

assembly language program for sorting an array using 8086 microprocessor.


Program to calculate area of triangle?

You don't need a program; the formula is b*h/2.


How can you start the program 'read in the lengths of the sides of a triangle and determine whether the triangle is an isosceles triangle two sides are equal an equilateral triangle three sides are'?

This would depend on what programming language you wanted to write it in. For example, in Pascal, the code might look like this: Program Isosceles; Var A, B, C : Real; Begin WriteLn('Input side A.'); ReadLn(A); WriteLn('Input side B.'); ReadLn(B); WriteLn('Input side C.'); ReadLn(C); If A = B Then Begin If B = C Then Begin WriteLn('This triangle is equilateral.'); End Else Begin WriteLn('This triangle is isosceles.'); And so on.