how to write this function

It is resolved thankyou everyone for the great help
Last edited on
Pseudo code will be as follows:

1
2
3
4
5
6
7
8
9
10
11
12
13
def function concatenate(x, y)
{
    result_length = length(x) + length(y)
    
    for index in range( 0 to result_length - length(y) )
    {
        result_string[index] = x[index]
    }
    for index in range(result_length - length(y) to result_length)
    {
        result_string[index] = y[index - length(x)]
    }
} 
Last edited on
you should mark this as solved
Registered users can post here. Sign in or register to post.