Hello! How can I fill the matrix at random so that the numbers are both positive and negative? Positive know that like this.
randomize; for i:=1 to n do for j:=1 to n do matr[i,j]:=random(10); write(matr[i,j]:5) writeln;
What needs to be changed?
Hello! How can I fill the matrix at random so that the numbers are both positive and negative? Positive know that like this.
randomize; for i:=1 to n do for j:=1 to n do matr[i,j]:=random(10); write(matr[i,j]:5) writeln;
What needs to be changed?
Source: https://ru.stackoverflow.com/questions/71888/
All Articles