/* baseChange: Transformation to binary numbers Example: Enter digit (-1 to end): 1 Enter digit (-1 to end): 0 Enter digit (-1 to end): 4 Enter digit (-1 to end): -1 Number in decimal: 53 Smallest digit in decimal notation was 3. Number in binary: 00000000000110101 */ #include int BASE=7, currDigit, numericValue=0, powerOfTen, smallDigit, powerOfTwo, largePowerOfTwo = 65536; int main (void) { printf("Enter digit (-1 to end): "); scanf("%d", &currDigit); while (currDigit != -1) { numericValue = BASE * numericValue + currDigit; printf("Enter digit (-1 to end): "); scanf("%d", &currDigit); } printf("Number in decimal: %d\n", numericValue); smallDigit = 10; for (powerOfTen = 100000000; powerOfTen >= 1; powerOfTen = powerOfTen / 10) { if (numericValue >= powerOfTen && (numericValue / powerOfTen % 10) < smallDigit) smallDigit = numericValue / powerOfTen % 10; } printf("Smallest digit in decimal notation was %d.\n", smallDigit); printf("Number in binary: "); powerOfTwo = largePowerOfTwo; while (powerOfTwo >= 1) { printf("%d", (numericValue / powerOfTwo % 2)); powerOfTwo = powerOfTwo / 2; } printf("\n"); return(0); } Modify the above program to output individual digits of the decimal form (5 and 3 in the example) each on its own line.