Computer Science, asked by mahijain35, 8 months ago

Write a java program to find sum and average od 3 numbers​

Answers

Answered by saishiva25
1

Answer:

...........

mark as brainliest please

Answered by pds39937
2

Explanation:

However if you are not taking input from user then you can declare the data type based on the number value, for example if you want to find out the average of three integer numbers then you are declare num1, num2 & num3 as int but you have to use double as the return type of the avr method because the average of 3 int ...

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