Advertisement
ArfIsAToe

bilel

Apr 22nd, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.14 KB | None | 0 0
  1.  write('ch = ');
  2.   readln(ch);
  3.     for a:=Length(ch) DownTo 2 do
  4.         if (ch[a]=ch[a-1]) and( ch[a] = '*' ) Then
  5.          delete(ch,a,1);
  6.     write(ch);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement