Advertisement
CyberPascal

Untitled

Apr 14th, 2014
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.59 KB | None | 0 0
  1. Program Bla_bla; uses crt;
  2.  
  3. var st:string;
  4.     i:integer;
  5.    
  6. Begin clrscr;
  7. Write('Введите кодированный текст: '); Readln(St);
  8.  
  9. for i:=1 to Length(St) do if (St[i] = #65) then St[i]:=#82
  10.                                            else if (St[i] = #66) then St[i]:=#80
  11.                                                                  else if (St[i] = #67) then St[i]:=#77
  12.                                                                                        else if (St[i] = #68) then St[i]:=#84;
  13. Writeln('Декодированный текст: ',St);  
  14. Readln;
  15. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement