#include
int main(void)
{
int octal[100] = {0};
int num = 0;
int i = 0;
printf("请输入十进制数字:");
scanf("%d",&num);
while(num)
{
octal[i++] = num % 8;
num /= 8;
}
printf("八进制:");
for(i -= 1; i >= 0; --i)
printf("%d ", octal[i]);
putchar('\n');
return 0;
}