Help deal with Pascal. So I made the beginning of the program and said that in order to finish it, you need to get around to the "mod", "div" help, please ... Here is what I did:
Program mass; Uses crt; var A:array [1..100] of integer; i,n,m:integer; begin clrscr; writeln('введіть кількість елементів масивів'); read(n); for i:=1 to n do begin A[i]:=random(101)-60; write(A[i],' '); end; writeln; m:=0; for i:=1 to n do if A[i]<0 then begin m:=i; break; end; write(A[m],' ','його порядковий номер = ',m); readkey; end.
Here is the condition:
Among the array elements that are placed after its first negative element, find the number of those that end no more than 5. I would be grateful.