0
Hi guys my question is how can I search in an string using loops.
For example I want to check whether "world "is in "hello world" or no . How can i do this with loops?
1 Resposta
0
First, assign each character to the elements of an array. Then all elements of world to another. Then compare them one by one. If you get the first character, use another if to compare the second character and so on. This process is easy but lengthy.