Computer Science, asked by aniket789htg, 3 months ago

c) Write a program in java to find out maximum and minimum number.

Answers

Answered by ehsan363
0

Explanation:

int[] nums={6,-1,-2,-3,0,1,2,3,4};

Arrays. sort(nums);

System. out. println("Minimum = " + nums[0]);

System. out. println("Maximum = " + nums[nums. length-1]);

Similar questions