Computer Science, asked by negiseema86, 8 months ago

1. =SUM (8, -6, 3, 20)
2. = AVERAGE (45, 30, 50, 47, 33)​

Answers

Answered by sayamkeshri2008
0

1. Sum Function

function SUM(a, b, c, d) {

 return (a+b+c+d);

}

we can invoke for example SUM(8, -6, 3, 20)

2. Average

we can use our sum function here

function AVERAGE(a,b,c,d,e){

return ((a+b+c+d+e)/5);

}

we can invoke for example AVERAGE (45, 30, 50, 47, 33)

Similar questions