Computer Science, asked by kunikac, 5 months ago

write a program in Java to find and display the sum & average of three numbersvby using function argument​

Answers

Answered by veersinghrathore
0

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