Fracisco
2015-09-22 11:48
public class HelloWorld{
public static void main(String[] args) {
int one = 10 ;
int two = 20 ;
int three = 0 ;
three=one+two;
System.out.println("three=one+two==>"+three);
three+=one;
System.out.println("three=three+one==>"+three);
three-=one;
System.out.println("three=three-one==>"+three);
three*=one;
System.out.println("three=three*one==>"+three);
three/=one;
System.out.println("three=three=three/one==>"+three);
three%=one;
System.out.println("three=three%one==>"+three);
o66
肯定不能正常显示啊,第六行有three=30;没有three=0;
后面的计算结果肯定不同的。
Java入门第一季(IDEA工具)升级版
1165171 学习 · 17581 问题
相似问题
回答 2