Mine durys esebi:
program x_x;
uses crt;
var i, x, x2, man:integer;
begin
clrscr;
writeln('neshe ret 4 tanbali san engizesiz: ');
readln(x2);
for i:= 1 to x2 do begin
readln(x);
x:=(x div 1000) + (x mod 1000 div 100) + (x mod 1000 mod 100 div 10) + (x mod 10);
man:=man+x;
end;
writeln('Engizgen ',x2,' sannin 4-shi tsifrlar kosindisi = ' ,man);
readln;
end.
program x_x;
uses crt;
var i, x, x2, man:integer;
begin
clrscr;
writeln('neshe ret 4 tanbali san engizesiz: ');
readln(x2);
for i:= 1 to x2 do begin
readln(x);
x:=(x div 1000) + (x mod 1000 div 100) + (x mod 1000 mod 100 div 10) + (x mod 10);
man:=man+x;
end;
writeln('Engizgen ',x2,' sannin 4-shi tsifrlar kosindisi = ' ,man);
readln;
end.