Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #define DLUGOSC 10
- char a[DLUGOSC][3];
- int i, j, l=0;
- int main() {
- for(i = 0; i < DLUGOSC; i++) {
- printf("Podaj 2 litery dla %d-ego miejsca: ", i + 1);
- scanf("%s", a[i]);
- }
- puts("");
- for(i = 0; i < DLUGOSC; i++)
- printf("[%s]", a[i]);
- puts("");
- for (i = 0; i < (1 << DLUGOSC); i++) {
- for (j = 0; j < DLUGOSC; j++ )
- printf("%c", a[j][(i & (1 << j)) != 0]);
- puts("");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement