Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. #define LEN 28
  4.  
  5. void inc(int* var)
  6. {
  7. *var = *var + 2;
  8. }
  9.  
  10. int main()
  11. {
  12. char* word = "ПРОЕКТИРОВАНИЕ";
  13. int len = 0;
  14. while(word[++len]);
  15. char* p1 = &word[0];
  16. char* p2 = &word[1];
  17. char subword[LEN*LEN][LEN+2];
  18. int z = 0;
  19. char min[LEN];
  20. int minz = 0;;
  21. char loc[LEN];
  22. for(int i = 0; i < len; inc(&i))
  23. for(int j = i + 1; j <= len; inc(&j))
  24. {
  25. for(int k = i; k < j; inc(&k))
  26. {
  27. putchar(word[k]);
  28. putchar(word[k + 1]);
  29. }
  30. putchar('\n');
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement