Write a program to take 10 numbers as input and print their average.
Answers
Answered by
23
Answer:
class prog {void main(int n)
{
int a[]=new int[n];
int sum=0;
for(int i=0;i<n;i++)
sum=sum+a[n];
double average=sum/n;
System.out.println(average);
}}
umarjutt4242:
thanks
Answered by
0
hhhhuuuggjvfgujgfgvcuhgtjvtubj
Similar questions