|
|
back to boardHelp.Помогите найти ошибку Posted by Vasurov 20 Nov 2015 01:33 var m, n, b, y, k, x: integer; function St(x, n: integer): integer; var i, f: integer; begin f := 1; for i := 1 to n do f := f * x; St := f; end; begin readln(n, m, y); for x := 0 to m - 1 do begin b := st(x,n); if (b mod m) = y then begin write(x,' '); k := k + 1; end; end; if k = 0 then writeln(-1); end. Re: Help.Помогите найти ошибку |
|
|