#include <stdio.h>
#include <stdlib.h>
int main(void)
{
int total=0;
int num=1;
while(num!=0)
{
printf("정수입력: ");
scanf("%d", &num);
total=total+num;
}
printf("총합: %d \n", total);
system("pause");
return 0;
}