diff options
Diffstat (limited to 'comp/work/3/isIn.c')
-rwxr-xr-x | comp/work/3/isIn.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/comp/work/3/isIn.c b/comp/work/3/isIn.c new file mode 100755 index 0000000..8254099 --- /dev/null +++ b/comp/work/3/isIn.c @@ -0,0 +1,19 @@ +#include<stdlib.h> +#include<stdio.h> +#include<string.h> + +int isIn(char str1[], char str2[]){ + int str1Length = strlen(str1); + int str2Length = strlen(str2); + + for (int i = 0; i < str1Length; i++){ + for (int j = 0; j < str2Length; i++){ + if (str1[i] == str2[j]){ + return 0; + } + } +} + +int main(){ + +} |