diff --git a/4.c b/4.c new file mode 100644 index 0000000..b6202a7 --- /dev/null +++ b/4.c @@ -0,0 +1,31 @@ + + +#include +#include +int main() +{ +char str[100]; +int table[4][2]={{1,0},{2,0},{3,0},{3,3}}; +int s=0,i,l; +printf("\nenter the string\n"); +scanf("%s",str); +l= strlen(str); +for(i=0;i