powers.bas revision 4479
14479Sbinkertn@umich.edu5 PRINT "THIS PROGRAM COMPUTES AND PRINTS THE NTH POWERS" 24479Sbinkertn@umich.edu6 PRINT "OF THE NUMBERS LESS THAN OR EQUAL TO N FOR VARIOUS" 34479Sbinkertn@umich.edu7 PRINT "N FROM 1 THROUGH 7" 44479Sbinkertn@umich.edu8 PRINT 54479Sbinkertn@umich.edu10 FOR N = 1 TO 7 64479Sbinkertn@umich.edu15 PRINT "N = "N 74479Sbinkertn@umich.edu20 FOR I = 1 TO N 84479Sbinkertn@umich.edu30 PRINT I^N, 94479Sbinkertn@umich.edu40 NEXT I 104479Sbinkertn@umich.edu50 PRINT 114479Sbinkertn@umich.edu60 PRINT 124479Sbinkertn@umich.edu70 NEXT N 134479Sbinkertn@umich.edu80 END 14