Comp - if(num2 >= num3 second = num2 third = num3 else...

This preview shows page 1 - 2 out of 2 pages.

// Author: Ashton Innocent Assignment: Compimport java.util.Scanner;public class Comp {public static void main(String[] args) {Scanner x = new Scanner(System.in);System.out.println("First Number?");int num1 = x.nextInt();System.out.println("Second Number?");int num2 = x.nextInt();System.out.println("Third Number?");int num3 = x.nextInt();int first = 0;int second = 0;int third = 0;if (num1 >= num2) {if (num1 >= num3) {first = num1;

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture