167th program input & output

Input :  
How many numbers = 5
a[1] = 4

a[2] = 8

a[3] = 9

a[4] = 78

a[5] = 56
Output :- 

Summation of Arrays element = 31.000000

//////////////////////////////////////////////////////////////////////////////////////////////

Input :  
How many numbers =3
a[1] = 4

a[2] = 8

a[3] = 9
Output :- 

Average of Arrays element = 7.00000

//////////////////////////////////////////////////////////////////////////////////////////////