wap to input three side of triangle and check whether it is isoceles or not(use scanner)
Answers
Answered by
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
Answered by
0
Answer:
hy buddy
Explanation:
give me answer
my questions is in my profile
pls give me answer
Similar questions