#12488: java


zzser15963 (Momentary)

學校 : 國立新營高級中學
編號 : 57840
來源 : [110.30.168.151]
最後登入時間 :
2020-09-26 22:16:48
a034. 二進位制轉換 | From: [36.233.7.222] | 發表日期 : 2017-07-29 16:58

package test;

import java.util.Scanner;

public class pratice {

public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner in = new Scanner(System.in);

String str = null;
char[] word;
int number = 0;
while (in.hasNext()) {
number = in.nextInt();

System.out.println(Integer.toBinaryString(number));
}
in.close();
}

}

 
ZeroJudge Forum