#include"stdio.h"
void main()
{
int arr[4],i;
int sum=0;
float ave;
printf(“please input the numbers:\n”);
for(i=0;i<4;i++)
{
scanf("%d",&arr[i]);
sum+=arr[i];
}
ave=sum/4.0;
printf(“the sum is %d\nthe ave is %.2f\n”,sum,ave);