startNum% = 0
endNum% = 38
counter% = 1
PRINT "Counter", "Number"
FOR num% = startNum% TO endNum% STEP 2
PRINT counter%, num%
counter% = counter% + 1
NEXT
*NOTE*: This prints out all of the even numbers starting from 0 up to 38; if you didn't wish 0 to be included as well; then, change it to say...
startNum% = 2
endNum%= 40
Chat with our AI personalities
The sum of the first 30 positive even numbers is 930.
The sum of the first 30 even whole numbers is 30(31) or 930
The sum of the first 200 even numbers is 40,200.
For N = 1 to 10 Print 2 * N Next N
Code Below: <?php $j = 100; // Set limit upper limit echo "Even Numbers are: <br/>"; for($i=1;$i<=$j;$i++) { if($i%2) { continue; } else { echo $i."<br/>"; } } ?>