Sha256: 3c4af047d7b4487222a84acbde63929d3fc0f653ef5d6205603fe78f9295c516
Contents?: true
Size: 378 Bytes
Versions: 1
Compression:
Stored size: 378 Bytes
Contents
PRINT "I can sum even numbers." PRINTLN PRINT "At what number should I start summing" READ START PRINT "At what number should I stop" READ STOP SUM := 0 FOR I := START TO STOP IF (I MOD 2) = 0 THEN SUM := (SUM + I) ENDIF NEXT PRINT "The sum of all even numbers between (inclusive) " PRINT START PRINT " and " PRINT STOP PRINT " is = " PRINT SUM PRINTLN
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rockit-0.7.2 | tests/acceptance/packrat/minibasic/sumeven.basic |