#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int bin(int n)
{
if (n < 8)
return n;
else
return bin(n / 8) * 10 + n % 8;
}
int main()
{
int i, t;
scanf("%d", &t);
for (i = 1; i <= t; i++)
{
int a;
scanf("%d", &a);
printf("%d\n", bin(a));
}
}
标签:bin,10,return,int,scanf,number,system,octal,main From: https://blog.51cto.com/u_16336976/8257770