Created
November 13, 2014 10:48
-
-
Save anuradhawick/f20687e95e36781a8345 to your computer and use it in GitHub Desktop.
Euler 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
void main(){ | |
int i = 0,sum=0; | |
for(i=1;i<1000;i++){ | |
if(i%3==0 | i%5==0){ | |
sum += i; | |
} | |
} | |
printf("%d\n",sum); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment