1: // Created by Frank M. Carrano and Timothy M. Henry.
2: // Copyright (c) 2017 Pearson Education, Hoboken, New Jersey.
4: void displayOctal(int n)
5: {
6: if (n > 0)
7: {
8: if (n / 8 > 0)
9: displayOctal(n / 8);
10: std::cout << n % 8;
11: } // end if
12: } // end displayOctal