标签:
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc=new Scanner(System.in); int temp; int min=1000000000; int max=-1000000; for(int i=0;i<11;i++){ temp=sc.nextInt(); if(temp>max) max=temp; if(temp<min) min=temp; } System.out.println(max+" "+min); } }
标签:
原文地址:http://www.cnblogs.com/watchfree/p/5350681.html