Well do not read about array. Unless your teacher did talk about array.
INPUT = asda
OUTPUT = sd
You should know how to look at each character. (Your teacher must have told you about "for" loops)
1) do a loop and look at each char
LOOK at the first char 'a'
2)
do another loop, and look at each char again.
compare each char to the 'a' and count.
You get:2
So skip it.
Next round in the loop 1
This time you get an 's'
and your second loop should count to 1
and you copy the 's'
-------------------
write this in pascal.
even if you have errors, and even if it does not compile.
Post/write your attempt here.