Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Matriz 9x9
program numeroaleatorio; const maxfil = 9; maxcol = 9; var x, i, j, aux : integer; matriz : array [1..maxfil,1..maxcol] of integer; begin randomize(); // inicia generador de numeros aleatorios, para generar numeros aleatorios por cada ejecucion. aux := 1; for i:=1 to maxfil do begin for j:=1 to maxcol do begin x:=random(9); matriz[i,j] := x; end; end; // mostrar matriz for i:=1 to maxfil do begin for j:=1 to maxcol do begin write(matriz[i,j],' '); end; writeln; end; end.
run
|
edit
|
history
|
help
0
practica 9 ejercicio 3
123
pi
Mat
practica 1 ejercicio 8
Kim
Задачи к § 66 «Символьные строки» Задача №112336. Замена a-b в последовательности символов.
0 1 0 0 0 1 1 1
1 25 6
test22