Home work - recPrint(n System.out.print\n public static...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
class DiffBase { public static void recPrint(int n) { if (n >= 7) recPrint(n/7); System.out.print(n % 7); } public static void baseSevenPrint(int n) {
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: recPrint(n); System.out.print('\n'); } public static void main (String args) { baseSevenPrint(101); } }...
View Full Document

This note was uploaded on 02/18/2011 for the course 22C 031 taught by Professor Kasturi during the Spring '11 term at University of Iowa.

Ask a homework question - tutors are online