Skip to content

Instantly share code, notes, and snippets.

@shohan4556
Last active August 29, 2015 14:06
Show Gist options
  • Save shohan4556/3734fa534a86ab0a9b17 to your computer and use it in GitHub Desktop.
Save shohan4556/3734fa534a86ab0a9b17 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main() // project euler problem # 5
{
int i=1;
while(1)
{
if(i%11==0 && i%12==0 && i%13==0
&& i%14==0 && i%15==0 && i%16==0
&& i%17==0 && i%18==0 && i%19==0
&& i%20==0)
{
printf("%d\n", i);
break;
}
i++;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment