Chemistry, asked by shantannu2003, 11 months ago

wap to input three side of triangle and check whether it is isoceles or not(use scanner)​

Answers

Answered by manju93314
1

Answer:

import java.util.*;

public class triangle

{

public static void main(String args[])

{

Scanner sc=new Scanner ( System.in);

System.out.println(" Enter the first side of the triangle :");

int a=sc.nextInt();

System.out.println(" Enter the second side of the triangle :");

int b=sc.nextInt();

System.out.println(" Enter the third side of the triangle :");

int c=sc.nextInt();

if(a==b||b==c||c==a)

{

System.out.println(" It is an isosceles triangle.");

}

else

{

System.out.println(" It is not an isosceles triangle.");

}

}


shantannu2003: wrong
shantannu2003: you have done the program for equilateral triangle
Answered by ashaider4u
0

Answer:

hy buddy

Explanation:

give me answer

my questions is in my profile

pls give me answer

Similar questions