Write a C program to calculate sum and average of an array

Write a C program to calculate sum and average of an array

#include
#include
int main( ){
	int arr[50],i,sum=0,n;
	float avg=0.0;
	printf("Enter the number of element U want to enter:");
	scanf("%d",&n);
	printf("\nEnter %d elements to the array arr:",n);
	for(i=0;i