109.1.. Učitati dvodimenzionalni niz. Ispisati parne članove trećeg reda.

Opis programa:

Tekstualni algoritam:

Listing programa:

PROGRAM p10911008;
USES
  WinCrt;
VAR
 i,j,n,m : INTEGER;
 X : ARRAY [1..15,1..15] OF INTEGER;
BEGIN
  WRITELN('n,m');
  readln(n,m);
  WRITELN('Ulaz i izlaz niza');
  FOR i := 1 TO n DO  
    FOR j := 1 TO m DO
      BEGIN
        WRITE('X[',i,',',j,']=');
        READLN(X[i,j]);
      END;
  FOR i := 1 TO n DO  
    BEGIN
      WRITELN;
      FOR j := 1 TO m DO
       if (i=3) and (X[i,j] mod 2 =0) then
        WRITE(X[i,j]:4);
    END;
END.

Izvođenje programa:

Index