Problem1222--十进制转换二进制

1222: 十进制转换二进制

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 0  Solved: 1
[Submit] [Status] [Web Board] [Creator:]

Description

本题要求实现一个函数,将正整数n转换为二进制后输出。 函数接口定义: void dectobin( int n ); 函数dectobin应在一行中打印出二进制的n。建议用递归实现。 裁判测试程序样例: #include void dectobin( int n ); int main() { int n; scanf(

Input

十进制正整数n

Output

十进制正整数n

Sample Input Copy

10

Sample Output Copy

1010

Source/Category