October 2018 1 16 Report

Tablica która wyświetla liczby parzyste , póki co mam tablice z liczbami 0 i 1 oto tablica. Liczby parzyste mają być jak to zrobić?

program tab;
var
tablica:array[1..10,1..10] of integer;
j,i:integer;
Begin
for i:=1 to 10 do
for j:=1 to 10 do

begin
if (j=i) then
tablica[j,i]:=0
else
tablica[j,i]:=1
end;

for i:=1 to 10 do
begin
for j:=1 to 10 do
begin
write(tablica[j,i]);
end;
writeln();
end;
readln;
end.


Recommend Questions



Life Enjoy

" Life is not a problem to be solved but a reality to be experienced! "

Get in touch

Social

© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.