/* Convert the following code using loops, and describe in plain english what the function does using a comment. The strlen function returns the length of a given string. The end of string character '\0' is not counted. For example, strlen("The"); returns 3. */ #include #include int foo(char A[][15], int x); int main(void){ char A[8][15] = {"This", "is", "ENEE150", "so", "we", "love", "C", "programming!"}; printf("foo(): \n"); printf("%d\n", foo(A, 5)); printf("%d\n", foo(A, 2)); printf("%d\n", foo(A, 1)); } int foo(char A[][15], int x){ if(x<0){ return 0; } else { if(strlen(A[x])>=3){ return 1+foo(A, x-1); } else{ return foo(A, x-1); } } }