import java.util.Scanner;
class MaxEdge

{
	public static void main(String arg[])	
	{
	    int e1,e2,e3,max; 
	    Scanner sc=new Scanner(System.in);
	    System.out.println("Enter the 3 edges of a tringle)");
	    e1=sc.nextInt();
	    e2=sc.nextInt();
	    e3=sc.nextInt();
	    if(e1>=e2)
	    {
		if(e1>=e3)
		   max=e1;
		else 
		   max=e3;
	    }
	    else if(e2>=e3)
		 {
		     max=e2;
		 }
		 else
                     max=e3;
	    System.out.println("The maximum edge of a trinagle of 3 edges ("+e1+" "+e2+" "+e3+") is :"+max);
	}
}

Related Posts

Leave a Reply

Recent Articles

Some Useful Links for You to Get Started
March 26, 2021
Hello world!
December 18, 2019
Using anthrax to fight cancer effectively
February 28, 2019

Text Widget

Nulla vitae elit libero, a pharetra augue. Nulla vitae elit libero, a pharetra augue. Nulla vitae elit libero, a pharetra augue. Donec sed odio dui. Etiam porta sem malesuada.

Our Services