98. Write a display the following
series: 999, 728, 511.........upto 10th term.
DECLARE SUB SERIES ( )
CLS
CALL SERIES
CALL SERIES
END
SUB SERIES
a = 999b = 271
c = 54
FOR i = 1 TO 10
PRINT a
a = a - b
b = b - c
c = c - 6
NEXT i
END SUB
Cls
ReplyDeleteFor a = 10 To 1 Step -1
b = a ^ 2 * a - 1
Print b;
Next a
End