**Hi**, how can I find the closest number of average in this array?
**Idk how to do this.**

```
#include<stdio.h>
#include<stdlib.h>
int arraysum();
int main()
{
    int n, A[100], i, b, sum;
    float average;
    printf("Enter number of elements in array: ");
    scanf("%d", &n);
    printf("\nEnter %d numbers: ", n);
    for(i=0; i<n; i++)
        scanf("%d", &A[i]);
    printf("Numbers of this array: ");
    for(i=0; i<n; i++)
        printf("%d ", A[i]);

    average=arraysum(A, sum, i, n)/n;
    printf("\nAverage is: %.2f", average);       
}
int arraysum(int A[], int sum, int i, int n)
{
    sum=0;
    for(i=0; i<n; i++)
        sum+=A[i];
    return sum; 
}

```

**Thanks in advance, guys!**
:D