# include <stdio.h>
int main(void)
{
int i;
double number, sum = 0.0;
double a;
for (i = 1; i <= 10; i++)
{
printf("%d¹ø° ½Ç¼ö¸¦ ÀÔ·ÂÇϽÿÀ: ", i);
scanf("%lf", &number); // doubleÇü ½Ç¼ö´Â %lf¸¦ »ç¿ëÇÑ´Ù.
if (number < 0.0)
break;
sum += number;
}
a = sum / i;
printf("ÇÕ°è = %f\n", sum);
printf("Æò±Õ = %f\n", a);
return 0;
}