Skip to content

Instantly share code, notes, and snippets.

@retep998
Created May 23, 2012 18:05
Show Gist options
  • Save retep998/2776726 to your computer and use it in GitHub Desktop.
Save retep998/2776726 to your computer and use it in GitHub Desktop.
for (unsigned int a = 0; a < 10; ++a) {
for (unsigned int b = 0; b < 10; ++b) {
for (unsigned int c = 0; c < 10; ++c) {
for (unsigned int d = 0; d < 10; ++d) {
for (unsigned int e = 0; e < 10; ++e) {
if (a*b == 24 && d == b/2 && d+e == a+c && a+b+c+d+e == 26) {
cout << a << b << c << d << e << endl;
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment