Skip to content

Instantly share code, notes, and snippets.

@gyng
Created May 28, 2012 03:07
Show Gist options
  • Save gyng/2816980 to your computer and use it in GitHub Desktop.
Save gyng/2816980 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(void) {
int n = 0;
int i;
for (i = 1; i < 2000000000; i++) {
if (i % 5 == 0 && i % 3 == 0)
n++;
}
printf("%d", n);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment