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