Computer Science, asked by mantashashaziasaeed, 11 months ago


Write a program to take 10 numbers as input and print their average.​

Answers

Answered by utkarshmishra9819
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
utkarshmishra9819: Welcome
Answered by sherjeelhussain000
0

hhhhuuuggjvfgujgfgvcuhgtjvtubj

Similar questions