Answer please java programming
Attachments:
Answers
Answered by
0
Answer:
import java.io *;
class ohk
{
public static void main (string args[ ]) Throws IOException
{
DataInputStream in= new DataInputStream (System.in);
int a,b,c
System.out.println ("enter 3 sides of a triangle ");
a=Integer.parseInt(in.readLine());
b=Integer.parseInt(in.readLine());
c=Integer.parseInt(in.readLine());
if(a=b&&b=c&&c=a)
System.out.println ("equilateral");
if(a!=b&&b!=c&&c!=a)
System.out.println ("scalene");
if ((a=b&&b!=c) II (b=c&&c!=a) II (c=a&&c!=a)
System.out.println ("isosceles");
}
}
Similar questions