BearCola
7/25/2017 - 3:32 AM

printInBinary (1-2 11:55)

printInBinary (1-2 11:55)

public void printInBinary(int n) {
  if (n < 2) { 
    System.out.print(n);
  } else {
    printInBinary(n / 2);
    System.out.print(n % 2);
  }
}