/* octal.c * converts decimal numbers to octal * * King Chapter 4, Ex. 4. * * By Cory Spitzer * March 7th, 2013 * * 8**5 = 32768 * 8**4 = 4096 * 8**3 = 512 * 8**2 = 64 */ #include #include int main() { char num_string[8]; // or char* num_string? I'm not grokking this yet int oct_number = 0, i; printf("Enter an integer between 0 and 32767 - (8^5 - 1)"); fgets(num_string, 8, stdin); // convert to octal //for (i = 0; i < 5; i++) { // //} //oct_number = return 0; }