develop8
发贴: 129
积分: 0
|
于 2006-05-29 07:55
import java.io.*; class test32{ public static void main(String[]args){ try{ while(true){ int a=System.in.read(); double d=a; System.out.println(d+"%"+2+"="+d%2); } }catch(IOException e){} } } /* 数字 13和10 是哪里来的啊?????????????
D:\PRETTY\array>java test32 23 50.0%2=0.0 51.0%2=1.0 13.0%2=1.0 10.0%2=0.0 f 102.0%2=0.0 13.0%2=1.0 10.0%2=0.0 fd 102.0%2=0.0 100.0%2=0.0 13.0%2=1.0 10.0%2=0.0 sdd 115.0%2=1.0 100.0%2=0.0 100.0%2=0.0 13.0%2=1.0 10.0%2=0.0 aaa 97.0%2=1.0 97.0%2=1.0 97.0%2=1.0 13.0%2=1.0 10.0%2=0.0 jjj 106.0%2=0.0 106.0%2=0.0 106.0%2=0.0 13.0%2=1.0 10.0%2=0.0 ggg 103.0%2=1.0 103.0%2=1.0 103.0%2=1.0 13.0%2=1.0 10.0%2=0.0 ll 108.0%2=0.0 108.0%2=0.0 13.0%2=1.0 10.0%2=0.0 u 117.0%2=1.0 13.0%2=1.0 10.0%2=0.0 yyy 121.0%2=1.0 121.0%2=1.0 121.0%2=1.0 13.0%2=1.0 10.0%2=0.0 re 114.0%2=0.0 101.0%2=1.0 13.0%2=1.0 10.0%2=0.0 da 100.0%2=0.0 97.0%2=1.0 13.0%2=1.0 10.0%2=0.0 */
|