

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


if ((x > (y + 1)) && (x > -2) && (x < 1)) System.out.println(โAโ); else if ((x > 0) && ((x < y) || (x < -1))) System.out.println(โBโ); else System.out.println(โCโ);
System.out.print("Please input an int: "); int input = kb.nextInt(); int temp = 0; while (input > 0) { if (input > 5) temp++; System.out.print("Please input an int: "); input = kb.nextInt(); }
System.out.print("Please input an int: "); input = kb.nextInt(); int temp = input; for (int i = 0; i < 7; i++) { if (input > temp) temp = input; System.out.print("Please input an int: "); input = kb.nextInt(); }
int temp = 0; do { System.out.print("Please input an int: "); input = kb.nextInt(); temp += input; } while (input > 0);