Computer Science, asked by sar63, 6 months ago

Write a java program to store the following values in an array of float. find the sum of the elements, average of the elements, maximum element and minimum element. 

  1.2f, .0032f, 3.24f, 4.57f, 22.7f, 33.35f, ​

Answers

Answered by eqra87
2

Answer:

This is a Java Program to Sort the Array in an Ascending Order.

Enter size of array and then enter all the elements of that array. Now with the help of for loop and temp variable we sort the array in ascending order.

Here is the source code of the Java Program to Sort the Array in an Ascending Order. The Java program is successfully compiled and run on a Windows system. The program output is also shown below.

Similar questions