在java中怎么比较三个整数大小例如(a,b,c

日期:2017-12-31 21:30:18 人气:1

在java中怎么比较三个整数大小例如(a,b,c

public class Sort { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("请依次输入3个数字"); int a = scanner.nextInt(); int b = scanner.nextInt(); int c = scanner.nextInt(); if( b > a){ int
    A+
热门评论