[정올] Language Coder_반복제어문2_형성평가5_code134 (C)

두비니

·

2020. 3. 26. 05:01

 

 

#include <stdio.h>

int main() {

	int n, even = 0, odd = 0;

	for (int i = 0; i < 10; i++) {
		scanf("%d", &n);
		if (n % 2 == 0)
			even++;
		else
			odd++;

	}

	printf("even : %d\n", even);
	printf("odd : %d", odd);

	return 0;
}