#define _CRT_SECURE_NO_WARNINGS
# include <stdio.h>
int main(void)
{
int i;
double number, sum = 0.0;
for (i = 1; i <= 10; i++)
{
printf("%d¹ø° ½Ç¼ö¸¦ ÀÔ·ÂÇϽÿÀ: ", i);
scanf("%lf", &number); // doubleÇü ½Ç¼ö´Â %lf¸¦ »ç¿ëÇÑ´Ù.
// »ç¿ëÀÚ°¡ À½¼ö¸¦ ÀÔ·ÂÇÏ¸é ¹Ýº¹ ·çÇÁ°¡ Á¾·áµÈ´Ù.
if (number < 0.0)
break;
sum += number;
}
printf("ÇÕ°è = %f", sum);
return 0;
}