Search:

Type: Posts; User: shad0wblade890

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,500

    Re: Prime numbers

    the steps are:
    print prime numbers up to a given maximum value.
    Accept the maximum value as a user input.
    A prime number is only divisible by 1 and itself.

    so im guessing its right output and...
  2. Replies
    7
    Views
    1,500

    Re: Prime numbers

    the results are :
    enter a number
    10
    2
    3
    5
    7
  3. Replies
    7
    Views
    1,500

    Re: Prime numbers

    Is it correct ?
  4. Replies
    7
    Views
    1,500

    Prime numbers

    print prime numbers up to a given maximum value.
    Accept the maximum value as a user input.
    A prime number is only divisible by 1 and itself.




    package prime;

    import java.util.Scanner;
Results 1 to 4 of 4