PRINT "N ITERATIONS OF THE LOGISTIC EQUATION: Xn+1=a*Xn*(1-Xn)"

PRINT

INPUT PROMPT "ENTER PARAMETER VALUE a (between 0 and 4): ":a

INPUT PROMPT "ENTER THE SEED VALUE X0 (between 0 and 1): ":X0

INPUT PROMPT "ENTER THE NUMBER OF ITERATIONS N (integer):":N

PRINT

LET Xold=X0

PRINT "ITERATION"," Xn VALUE"

FOR i = 0 to N step 1

LET Xnew=a*Xold*(1-Xold)

PRINT i,Xold

LET Xold=Xnew

NEXT i

END