Well I'm not really sure but there is not a limit to numbers. Numbers can go on forever.
Chat with our AI personalities
1 is the highest number you can count to using a mod-2 counter.
import java.util.Scanner; //A class to find the highest number of 10 user inputs public class HighApp{ public static void main(String[]args){ Scanner scan = new Scanner(System.in); int count = 0; System.out.println("Enter number " + count); int highest = scan.nextInt(); //first, assume highest count ++; while(count <= 10){ System.out.println("Enter number" + count); int input = scan.nextInt(); if (input > hightest){ highest = input }//end if statement count++; }//end while loop System.out.println("The highest number entered was " + highest); }//end main method }//end HighApp class
There is no highest number
There is no highest number, highest prime number, or highest composite number. Therefore, there can't be a second-highest, third-highest, etc., of any of these types of numbers, either.
There is an infinite number of possibilities to the highest number.