风雨河岸柳
幼苗
共回答了23个问题采纳率:100% 举报
import java.util.Scanner;
public class text {
public static void main(String [] args ){
Scanner scanner = new Scanner(System.in);
System.out.println("请输入三个整数:");
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
if(a==b&&b==c){
System.out.print("这三个数相等");
}
else{
if(a+b+c>1000){
System.out.print("这三个数之和大于1000");
}
else{
System.out.print("这三个数不大于1000");
}
}
}
}
望采纳
1年前
2