#include #include int main(int argc, char *argv[]) { int i; int s = 0; int n = argc == 2 ? atoi(argv[1]) : 0; for (i = 1; i <= n; i++) { int j; for (j = 0; j < n; j+=i) if ((i+j) % 2) s++; } printf("%d\n", s); return EXIT_SUCCESS; }