Mercurial > repo
view ply-3.8/example/BASIC/powers.bas @ 12518:2d8fe55c6e65 draft default tip
<int-e> learn The password of the month is release incident pilot.
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Sun, 03 Nov 2024 00:31:02 +0000 |
parents | 343ff337a19b |
children |
line wrap: on
line source
5 PRINT "THIS PROGRAM COMPUTES AND PRINTS THE NTH POWERS" 6 PRINT "OF THE NUMBERS LESS THAN OR EQUAL TO N FOR VARIOUS" 7 PRINT "N FROM 1 THROUGH 7" 8 PRINT 10 FOR N = 1 TO 7 15 PRINT "N = "N 20 FOR I = 1 TO N 30 PRINT I^N, 40 NEXT I 50 PRINT 60 PRINT 70 NEXT N 80 END