CSC300: How do you know? [5/21] Previous pageContentsNext page

01
02
03
04
05
06
07
08
09
  public static int f (int x, int y, int z) {
    int m = x;
    /* m == max(x) */
    if (m < y) { m = y; }
    /* m == max(x,y) */
    if (m < z) { m = z; }
    /* m == max(x,y,z) */
    return m;
  }

Previous pageContentsNext page