public class Test{
public static void main(String args[]){
int score[] = null ;
score = new int[10] ;
for(int i = 0 ; i <
score.length ; i++){
score[i] = i
;
}
int max , min , sum ;
max = score[0] ;
min = score[0] ;
sum = 0 ;
for(int i = 0 ; i <
score.length ; i++){
if(max <
score[i]){
max
= score[i] ;
}
if(min >
score[i]){
min
= score[i] ;
}
sum +=
score[i] ;
}
System.out.println("max = " + max +
" min = " + min + " sum = " +
sum);