Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
#30.2
#include <iostream> #include <string> using namespace std; int main() { for (int i = 1; i < 4; i++) { for (int j = 2; j < 5; j++) { for (int k = 3; k < 6; k++) { if ( i == j || j == k || i == k) continue; if ( j > k || i > j) continue; cout << i << " " << j << " " << k << endl; } } } return 0; } /** 1 2 3 1 2 4 1 2 5 1 3 4 1 3 5 1 4 5 2 3 4 2 3 5 2 4 5 3 4 5 **/
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
additional layer of indirection
Dynamically sized array at end of struct
Thing v.2
Strings
infix to postfix v 2.0
StreamParam
Regex failure
ntohl
Ελλάδα !!!!
MSVC noexcept - works
Please log in to post a comment.