最后一项输出错误
30 40 30 300 30 10
30 40 30 300 30 10
2018-05-09
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);
//three=0;
three+=one;
System.out.println(three);
//three=0;
three-=one;
System.out.println(three);
//three=0;
three*=one;
System.out.println(three);
//three=0;
three/=one;
System.out.println(three);
//three=0;
three &=one;
System.out.println(three);
}
}厉害的一个一个敲空格,这排版跟shi一样
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); //three=0; three+=one; System.out.println(three); //three=0; three-=one; System.out.println(three); //three=0; three*=one; System.out.println(three); //three=0; three/=one; System.out.println(three); //three=0; three &=one; System.out.println(three); }}代码如下
举报