// CS7 // Program demonstrating scope. It does nothing useful // and is intentionally poorly written to help you learn // scoping rules. class Scope { public static void main (String[] args) { int a=1,b=5,c=21; c = listerine(c); System.out.println(c); plax(a,b); System.out.println(b); if (b > 1) { int t=b; b += t; } System.out.println(b); for (int t=1; t<3; t++) System.out.println(t); } static int listerine(int a) { return (a % 2); } static void plax(int n, int c) { int b; c *= 2; b = n + c; System.out.println(b); } } /* OUTPUT: 1 10 5 10 1 2 */