23 lines
354 B
C
23 lines
354 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#define TARGET 10
|
|
#define MAX 9
|
|
|
|
int main(void) {
|
|
|
|
int i, j, n = 0, result;
|
|
|
|
for (i = 1; i <= MAX; i++) {
|
|
for (j = 1; j <= TARGET; j++) {
|
|
result = i * j;
|
|
if ((result % 2 == 0 && result % 4 == 0) && result % 3 != 0) {
|
|
n++;
|
|
}
|
|
}
|
|
}
|
|
|
|
printf("%d", n);
|
|
|
|
return EXIT_SUCCESS;
|
|
}
|