System.out.println(three%=one);
public static void main(String[] args) {
? ?int one = 10 ;
? ? ? ? int two = 20 ;
? ? ? ? int three = 0 ;
? ? ? ? System.out.println(three=one+two);
? ? ? ? System.out.println(three+=one);
? ? ? ? System.out.println(three-=one);
? ? ? ? System.out.println(three*=one);
? ? ? ? System.out.println(three/=one);
? ? ? ? System.out.println(three%=one);
30=10+20=30
30+=30+10=40
30-=40-10=30
30*=30*10=300
30/=300/10=30
30%=30%10=0?
%=是模等于什么叫模等于?
? ? ? ? 這里我不懂啊?怎么是0?
2015-01-16
three=one+two ==> three = 10+20 = 30
three+=one ==> three = three + one = 30+10 = 40 ?
three-=one ==> three = three - one = 40 - 10 = 30
three*=one ==> three = three * one = 30 * 10 =300
three/=one ==> three = three / one ?= 300 / 10 =30
three%=one ==> three = three%one = 30%10 =0 ?//這里的意思是取余操作,30對(duì)10取余,不就是0嗎~
2015-01-17
%是求余 的方法。 30%10 是0 ?30%11 就是1咯。 以此類(lèi)推