Write
a program in Java to
compute
the sum and average
of three numbers with a=15, b=10 and c=5.
Answers
Answered by
0
Answer:
see
Explanation:
Java Program to Calculate Sum & Average of an Array
public class Sum_Average.
int n, sum = 0;
float average;
Scanner s = new Scanner(System.
System. out. print("Enter no. of elements you want in array:");
n = s. nextInt();
int a[] = new int[n];
System. out. println("Enter all the elements:");
Similar questions