慕神2479700
2021-10-13 22:28
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+=one==>"+three);
three-=one;
System.out,println("three-=one==>"+three);
three*=one;
System,out,println("three*=one==>"+three);
three/=one;
System.out.println("three/=one==>"+three);
three%=one;
System.out.println("three%=one==>"+three);
System.out,println("three-=one==>"+three);
three*=one;
System,out,println("three*=one==>"+three);
看你这里的符号
第四条输出语句里应该是'.',你写成','了
Java入门第一季(IDEA工具)升级版
1165607 学习 · 17587 问题
相似问题