Online Judge【杭电】[2051]Bitset问题描述 问题分析进制转换10→2这里通过函数的调用省略了一个数组 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 #include<stdio.h> void pr(int n) { if(n) { pr(n/2); printf("%d",n%2); } else return; } int main() { int n; while(scanf("%d",&n)!=EOF) { pr(n); printf("\n"); } return 0; }题目地址:【杭电】[2051]Bitset