Why am i not getting an output
hey @Anchal, you are missing a situation when table[digit]==" ";
Moreover due to input format, make all string datatype to char array.
I have made these changes on your code. You can check them here.https://ide.codingblocks.com/s/101033