Var x,y,z,n:integer; begin writeln('Введите n'); readln(n) ;for x:=1 to n do begin for y:=1 to n do begin for z:=1 to n do begin if (sqr(x)+sqr(y)+sqr(z)=n)then writeln('x=',x,' y=',y,' z=',z); end; end; end; end.