Search:

Type: Posts; User: shiftasterisk

Search: Search took 0.18 seconds.

  1. Re: In desperate need of help. Making an exponents table.

    yea whoops, really botched that one as i was in a rush, sorry about that. Glad the OP figured it out, I edited my post just in case for future references tho.
  2. Re: In desperate need of help. Making an exponents table.

    First lets change your variables to something more descriptive



    Scanner kb = new Scanner(System.in);
    int base = kb.nextInt();
    int exponent = kb.nextInt();


    Alright so...
  3. Re: In desperate need of help. Making an exponents table.

    There only needs to be 1 for loop. Once you collected base 'b' and exponent 'e', the for loop would run from x = 1 to x<= e. Inside the for loop just print out b and b^x.
Results 1 to 3 of 3