Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (11 sloc) 0.217 kb
#include <stdio.h>
int main(int argc, const char * argv[]) {
int i, sum = 0;
for (i = 3; i < 1000; i++) {
if (i % 3 == 0 || i % 5 == 0) {
sum = sum + i;
}
}
printf("%d\n", sum);
return 0;
}
Jump to Line
Something went wrong with that request. Please try again.