Advertisement
Alex_Fomin

Untitled

Feb 11th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.29 KB | None | 0 0
  1. var
  2.   x, m: integer;
  3.  
  4. begin
  5.   m := -1;
  6.   repeat
  7.     Write('Введите число X: ');ReadLn(x);
  8.     if (x mod 3 = 0) and ((x < m) or (m < 0)) and (x <> 0) then m := x;
  9.   until x = 0;
  10.   if m >= 0 then WriteLn('Ответ: ', m) else WriteLn('нет таких чисел!');
  11. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement