// ModRun.java
// Demontrates the use of Runnable to create threads.


class ModRun implements Runnable {
  int m, n;
  ModRun ( int x, int y ) {
    m = x;
    n = y;
  }

  public void run() {
    System.out.printf ("%d mod %d is %d\n", m, n, m % n );
  }
}
