ex48.pp 319 B

1234567891011121314
  1. Program Example48;
  2. { Program to demonstrate the Pos function. }
  3. Var
  4. S : String;
  5. begin
  6. S:='The first space in this sentence is at position : ';
  7. Writeln (S,pos(' ',S));
  8. S:='The last letter of the alphabet doesn''t appear in this sentence ';
  9. If (Pos ('Z',S)=0) and (Pos('z',S)=0) then
  10. Writeln (S);
  11. end.