Advertisement
dimapi

Untitled

Oct 19th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.39 KB | None | 0 0
  1. { 1 }
  2. var S : string;
  3. begin
  4.   ReadLn(S);
  5.   if Length(S)=6 then
  6.      begin
  7.        if (S[1] in['A'..'Z']) AND (S[2] in['0'..'9']) AND (S[3] in['0'..'9']) AND
  8.           (S[4] in['0'..'9']) AND (S[5] in['A'..'Z']) AND (S[6] in['A'..'Z']) then WriteLn('Yes')
  9.                                                                               else WriteLn('No');
  10.      end
  11.      else WriteLn('No');
  12. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement