#include <stdio.h>
int main() {
int a;
int b = 0, c = 0;
int z;
while(1){
scanf("%d",&a);
if (a == 0) break;
if (a % 2 == 0)continue;
b += a;
c++;
}
z = b / c;
printf("홀수의 합 = %d\n홀수의 평균 = %d\n", a, z);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: