#include <stdio.h>
int main()
{
int no, sum = 0, i = 0, val;
printf("\nHow Many Numbers Do You Want to Enter: ");
scanf("%d", &no);
while (i %lt no)
{
printf("Enter No [%d]: ", i + 1);
scanf("%d", &val);
sum = sum + val;
i++;
}
printf("\nSum = %d", sum);
printf("\nAverage = %.2f", ((float)sum) / no);
return 0;
}