Subprogramul este:
SUBROUTINE MAXIM (X,N,IK)
IK=0
DO 10 I=1,N-1
IF(X(I).LT.X(I+1)) GO TO 20
10 CONTINUE
GO TO 40
20 IP=0
DO 30 I=1,N-1
IF(X(I).GE.X(I+1)) GO TO 30
AUX=X(I+1)
X(I+1)=X(I)
X(I)=AUX
IP=IP+1
30 CONTINUE
IF(IP.NE.0) GO TO 20
40 CONTINUERETURN
END
(25 decembrie 2017)
Acest program nu este testat că nu am un compilaor FORTRAN IV...
No comments:
Post a Comment