Advertisement
esvikey

Natural

Feb 12th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.20 KB | None | 0 0
  1. var i,z,n:integer;
  2. begin
  3. write('Введите число: ');
  4. readln(n);
  5. for i:=1 to 30 do begin
  6. z:=n mod 10;
  7. if (z mod 2 = 0) then write(z, ' ');
  8. n:=n div 10;
  9. if (n=0) then break;
  10. end;
  11. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement