diff --git a/big3.java b/big3.java new file mode 100644 index 0000000..987c59b --- /dev/null +++ b/big3.java @@ -0,0 +1,29 @@ +import java.util.Scanner; +public class Biggest_Number +{ + public static void main(String[] args) + { + int x, y, z; + Scanner s = new Scanner(System.in); + System.out.print("Enter the first number:"); + x = s.nextInt(); + System.out.print("Enter the second number:"); + y = s.nextInt(); + System.out.print("Enter the third number:"); + z = s.nextInt(); + if(x > y && x > z) + { + System.out.println("Largest number is:"+x); + } + else if(y > z) + { + System.out.println("Largest number is:"+y); + } + else + { + System.out.println("Largest number is:"+z); + } + + } +} + diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..8671f90 --- /dev/null +++ b/pom.xml @@ -0,0 +1,75 @@ + + + + 4.0.0 + + com.mycompany.app + my-app + 1.0-SNAPSHOT + + my-app + + http://www.example.com + + + UTF-8 + 1.7 + 1.7 + + + + + junit + junit + 4.11 + test + + + + + + + + + maven-clean-plugin + 3.1.0 + + + + maven-resources-plugin + 3.0.2 + + + maven-compiler-plugin + 3.8.0 + + + maven-surefire-plugin + 2.22.1 + + + maven-jar-plugin + 3.0.2 + + + maven-install-plugin + 2.5.2 + + + maven-deploy-plugin + 2.8.2 + + + + maven-site-plugin + 3.7.1 + + + maven-project-info-reports-plugin + 3.0.0 + + + + +