Created
May 23, 2012 18:05
-
-
Save retep998/2776726 to your computer and use it in GitHub Desktop.
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
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