SHARE
TWEET

Untitled

a guest Jan 18th, 2020 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. program Project1;
  2.  
  3. {$APPTYPE CONSOLE}
  4.  
  5. {$R *.res}
  6.  
  7. uses
  8.   System.SysUtils,System.Character;
  9.   var
  10.   input: String;
  11.   i: Integer;
  12.   procedure DoWork(s : String);
  13.   begin
  14.    for i:= Low(s) to High(s) do
  15.   begin
  16.    if (IsNumber(s[i])) then Write(s[i], ' ');
  17.   end;
  18.   end;
  19. begin
  20.   Writeln('Введите последовательность(строку)');
  21.   Readln(input);
  22.   DoWork(input);
  23.   Readln;
  24. end.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top