Search:

Type: Posts; User: ob7ivion

Search: Search took 0.17 seconds.

  1. Replies
    7
    Views
    269

    Re: determining a prime number

    fixed. lol.



    import java.util.Scanner;

    public class PrimeNumber {
    public static void main(String[] args) {

    Scanner kbd = new Scanner(System.in);
  2. Replies
    7
    Views
    269

    Re: determining a prime number

    update


    import java.util.Scanner;

    public class PrimeNumber {
    public static void main(String[] args) {

    Scanner kbd = new Scanner(System.in);
    int num;
  3. Replies
    7
    Views
    269

    Re: determining a prime number

    done editting.
  4. Replies
    7
    Views
    269

    determining a prime number

    Required:

    Write a java program that asks a user to input a positive integer value. The program must keep on asking for an input if the user enters a non-positive integer value. Once a valid...
Results 1 to 4 of 4