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";
}
see the program
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?
#include<stdio.h> main() { int i; for(i=1;i<=50;i++) { if (i%5!=0) printf("\n %d",i); } }
yea
Write a program to find the number and sum of all integers from 100 to 300 that are divisible by 11
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.
sense question Your makes no.
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
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");
assembly language program for sorting an array using 8086 microprocessor.
You don't need a program; the formula is b*h/2.
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.