Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. public static void conditionalTest(int a, int b) {
  2. if ((a > 0) && (b > 0)) {
  3. if (a > b) System.out.println("A");
  4. else System.out.println("B");
  5. } else if ((b < 0) || (a < 0)) System.out.println("C");
  6. else System.out.println("D");
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement