diff --git a/All Other Program/Q3.java b/All Other Program/Q3.java new file mode 100644 index 0000000..b1fa5b9 --- /dev/null +++ b/All Other Program/Q3.java @@ -0,0 +1,31 @@ +import java.util.Scanner; + + +class Q3 +{ + public static void main(String args[]) + { + int a,b,c; + Scanner sc = new Scanner(System.in); + System.out.println("Enter the First Number : "); + a = sc.nextInt(); + System.out.println("Enter the Second Number : "); + b = sc.nextInt(); + System.out.println("Enter the Third Number : "); + c = sc.nextInt(); + if(a>b && a>c) + { + System.out.println(a+" is the Biggest Number"); + } + else if(b>a && b>c) + { + System.out.println(b+" is the Biggest Number"); + } + else + { + System.out.println(c+" is the Biggest Number"); + } + + } + +}