Advertisement
NoCtrlZ

j2_29

Oct 29th, 2017
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.71 KB | None | 0 0
  1. //--- Coded_By_NoCtrlZ ---//
  2. var f1,f2:text; s,pass:ansistring; i:integer;
  3. so:set of byte;
  4. thuong:set of byte;
  5. hoa:set of byte;
  6. begin
  7. so:=[48..57];
  8. thuong:=[97..122];
  9. hoa:=[65..90];
  10. assign(f1,'j2_29.txt');
  11. reset(f1);
  12. assign(f2,'pass_29.txt');
  13. rewrite(f2);
  14. readln(f1,s);
  15. for i:=1 to length(s) do
  16.         if not (ord(s[i]) in so) then
  17.                 begin
  18.                 if ord(s[i]) in thuong then
  19.                 s[i]:=upcase(s[i])
  20.                 else
  21.                 if ord(s[i]) in hoa then
  22.                 s[i]:=chr(ord(s[i])+32);
  23.                 )and(s[i-1]='_') then pass:=pass+s[i];
  24.                 end
  25.                 else pass:=pass+s[i];
  26.  
  27.  
  28. write(f2,pass);
  29. close(f2);
  30. close(f1);
  31. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement