#include void convertToOctal(int number); int main(int argc, char* argv) { int num1 = 1862; printf("%d converted to octal by function is:", num1); convertToOctal(num1); printf("\n\n%d printed using octal format specifier: %o\n", num1, num1); } void convertToOctal(int number) { int quotient, remainder; if (number == 0) { return; } else { quotient = number / 8; remainder = number % 8 ; convertToOctal(quotient); printf("%d", remainder); } }