displayOctal( 8 )
I would say:displayOctal( 8 ): n = 8 if (n > 0) --> if (8 > 0) displayOctal( 8/8 --> 1 ) n = 1 if (n > 0) --> if (1 > 0) displayOctal( 1/8 --> 0 ) n = 0 if (n > 0) --> if (0 > 0) done print n%8 --> print 1%8 --> print 1 print n%8 --> print 8%8 --> print 0 |