Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- #include <String.h>
- #include <stdio.h>
- void recursivitate(char *b, char *a, int n)
- {
- if (n == strlen(a))
- {
- printf("%s", b);
- return;
- }
- else if ('a' <= a[n] && a[n] <= 'z')
- {
- strcat(b, a[n]);
- recursivitate(b, a, n + 1);
- }
- else
- recursivitate(b, a, n + 1);
- }
- void main()
- {
- char a[200],b[200]=" ";
- scanf("%s", a);
- recursivitate(b, a, 0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement