Wiki User
∙ 9y agoWant this question answered?
Be notified when an answer is posted
Prime numbers are numbers that are only divisible by themselves and the number 1. You can write a program to print all prime numbers from 1 to 100 in FoxPro.
The even numbers up to 100 are: 2 468101214161820222426283032343638404244464850525456586062646668707274767880828486889092949698100.
even numbers 1-100
100
Every second number is Even. So there are 50 even numbers from 1 to 100 if you include 100. If you do not include 100 in the count there are obviously 49. The wording of the question is not clear on whether 100 is to be included or not.
102
You need a code that can run to print even numbers between 10 and 100 using the qbasic command.
n=100 loop until n = 9 print n n = n -1 end loop
for i = 2 to 100 step 2 show i for i = 2 to 100 if i%2=1 print i end if next i
printf ("100+...+200=%d\n", ((100+200)/2)*(202-100)/2);
Prime numbers are numbers that are only divisible by themselves and the number 1. You can write a program to print all prime numbers from 1 to 100 in FoxPro.
The first 100 even numbers are: 2 468101214161820222426283032343638404244464850525456586062646668707274767880828486889092949698100102104106108110112114116118120122124126128130132134136138140142144146148150152154156158160162164166168170172174176178180182184186188190192194196198200.
The first 100 whole, even numbers are: 2468101214161820222426283032343638404244464850525456586062646668707274767880828486889092949698100102104106108110112114116118120122124126128130132134136138140142144146148150152154156158160162164166168170172174176178180182184186188190192194196198200.
CLS PRINT "PROGRAM: Print squares of all even numbers from 1 to 20" PRINT PRINT "number", "squared" PRINT FOR number% = 1 TO 20 IF number% MOD 2 = 0 THEN PRINT number%, number% * number% END IF NEXT END
The even numbers up to 100 are: 2 468101214161820222426283032343638404244464850525456586062646668707274767880828486889092949698100.
even numbers 1-100
algorithim and flow chart of odd number 1 and 50