Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (true) {
- int max = 0;
- int n= 0;
- for (int i = 0; i < 8; i++) {
- int mountainH = in.nextInt();
- if (mountainH > max) {
- max = mountainH;
- n = i;
- }
- System.out.println(n);
- max = 0;
- n= 0;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement