1112: 进制转换(函数专题)
import java.util.Scanner;
public class Main {
public static void convert(int n){
if(n>0){
convert(n/2);System.out.print(n%2);}}public static void main(String[] args) {
Scanner cin = new Scanner(System.in);int n=cin.nextInt();convert(n);}
}