hello, i done this program and try to execute it. but it still have error at the third looping. can someone help me fix the error?
and tell me why i have this error ?
No, they are ALMOST the same. Arrays start at zeroes, so when your loop goes from 1 to 3, you are out of bounds, since your array is s1[0], s1[1] and s1[2].