plz help me how to make this code that accepts 10 integers and display the largest.thanks in advance ...hoping for your positive responds
jemz
-1
Master Poster
Recommended Answers
Jump to PostScanner scn = new Scanner(System.in); int i = 0; if (scn.hasNextInt()) i = scn.nextInt();
That is for reading from keyboard. Read the first number and assume that it is the max:
Scanner scn = new Scanner(System.in); int num = 0; int max = 0; …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.