answersLogoWhite

0

Two solutions immediately spring to mind:

  1. Run over all the numbers in the range and if the number is even print it;
  2. run over the numbers starting with the first even number in the range using a step of 2 (so that only even numbers are considered) and print the numbers.
User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Program for print prime all number from 1 to 100 in foxpro?

Oh, what a lovely request! In FoxPro, you can create a program to print all prime numbers from 1 to 100 by using a loop to check each number for divisibility only by 1 and itself. If it meets this criteria, you can print it out on the screen. Remember, every number is unique and special, just like a happy little tree in a vast forest.


How can print prime numbers in between 1-100 but not adjust 40-50 in php language?

Use a counted loop in the closed range [1:100]. If the count is in the closed range [40:50], print the number. For all other numbers outwith this range, only print the number if it is prime.


Write a program to print first 100 alternative prime numbers?

This would require some computer knowledge. It can make it easier to find out the prime numbers without figuring it out in your head.


How do you print all prime numbers before 100?

The prime numbers before 100 are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, and 97. To print these prime numbers, simply cut and paste this list into your computer word processor and print it like any other document.


Which are prime numbers in 100?

The prime numbers (factors) of 100 are: 2 and 5


What percent of numbers from 1 to 100 are prime numbers?

25 percent of the numbers from 1 to 100 are prime numbers.


What are the prime numbers if 100?

The prime numbers of 100 are: 2, 2, 5 and 5


What are prime numbers higher than 100?

what are prime numbers higher than 100


How many prime numbers are between 0-100?

100


How many prime numbers are less then 100?

There are 25 prime numbers less than 100


What are the 3 prime numbers after 100?

The three prime numbers after 100 are: 101 103 107


There are no prime numbers above 100?

There are an infinite amount of prime numbers greater than 100