Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- int inputedValue1;
- int inputedValue2;
- int Counter = 1;
- Scanner input = new Scanner(System.in);
- for (; Counter <= 10; Counter+=1) {
- System.out.print("Enter an integer value: ");
- inputedValue1 = input.nextInt();
- for (; Counter <= 10; Counter+=1) {
- System.out.println("Enter an interger value: ");
- inputedValue2 = input.nextInt();
- if (inputedValue2 > inputedValue1) {
- inputedValue1 = inputedValue2;
- boolean trueOrFalse = true;
- Counter+=1;
- if (trueOrFalse) {
- System.out.println ("The highest value is :" + inputedValue2);
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement