文章浏览阅读2.4k次。@Testpublic void test7(){ int a = 0; int b = 0; int sum = 0; int sum1 =0; System.out.println("请输入数字a:"); a = new Scanner(System.in).nextInt(); System.out.println("请输入数字b:"); b = new Scanner(System.in).nextInt(); if(a+b>=100){ su......
文章浏览阅读1.3k次。代码如下:package 比大小.java;public class compare { public static void main (String[]args ) { System.out.println("开始"); int a=10; int b=20; b=3; if(a>b) { //判断a是否大于b,如果是,则输出:a值大于b,不是输出:a值小......