Nathan Binkert | 44ebb8d | 2007-05-24 21:54:51 -0700 | [diff] [blame] | 1 | 5 PRINT "THIS PROGRAM COMPUTES AND PRINTS THE NTH POWERS" |
2 | 6 PRINT "OF THE NUMBERS LESS THAN OR EQUAL TO N FOR VARIOUS" | ||||
3 | 7 PRINT "N FROM 1 THROUGH 7" | ||||
4 | 8 PRINT | ||||
5 | 10 FOR N = 1 TO 7 | ||||
6 | 15 PRINT "N = "N | ||||
7 | 20 FOR I = 1 TO N | ||||
8 | 30 PRINT I^N, | ||||
9 | 40 NEXT I | ||||
10 | 50 PRINT | ||||
11 | 60 PRINT | ||||
12 | 70 NEXT N | ||||
13 | 80 END |