Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- write('ch = ');
- readln(ch);
- for a:=Length(ch) DownTo 2 do
- if (ch[a]=ch[a-1]) and( ch[a] = '*' ) Then
- delete(ch,a,1);
- write(ch);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement