慕粉0727548769
2019-07-22 21:55
public class HelloWorld{
public static void main(String[] args) {
int one = 10 ;
int two = 20 ;
int three = 0 ;
int s1 = one+two;
System.out.println("three = one +two==>"+s1);
int s2 =three+one;
System.out.println("three += one ==>"+s2);
int s3 =three-one;
System.out.println("three -= one ==>"+s3);
int s4 =three*one;
System.out.println("three *= one ==>"+s4);
int s5 = three/one;
System.out.println("three /= one ==>"+s5);
int s6 = three%one;
System.out.println("three %= one ==>"+s6);
}
}
代码没问题,应该是没看清楚题目要求吧
答案显示和题目不一样... 我的运行之后是30 10 -10 0 0 0
答案没有错啊
哪儿错了?你想要什么答案?
Java入门第一季(IDEA工具)升级版
1165172 学习 · 17581 问题
相似问题