All pastes #979759 Raw Edit

BrettR

public text v1 · immutable
·published 2008-04-10 16:03 UTC
rendered paste body
public class Number7 {
    
    public static void main(String[] args) {
    	int big=0;
    	int small=101;
    	int []nums = new int [10];
    	for(int i = 0; i<10; i++){
    	nums[i] =	(int)(Math.random()*100+1);
    	big = Math.max(nums[i],big);
    	small = Math.min(nums[i],small);
    		System.out.println(nums[i]);
    	}
    	System.out.println("The biggest number is:"+ big);
    			System.out.println("The smallest number is:"+ small);
    }
}