Search:

Type: Posts; User: hope_08

Search: Search took 0.11 seconds.

  1. Replies
    8
    Views
    1,167

    Re: What's wrong with my code?

    If Output is as swing component like JLabel then you can use this setText method to set its text to the output you got earlier.
    You just need to use for eg if you are directing your output to be...
  2. Replies
    8
    Views
    1,167

    Re: What's wrong with my code?

    Hi,

    You just need to use one loop that goes until the expo = 10 is reached.
    so you need to modify your code as
    say if your input variable base = 2 and Expo = 10

    for (int x = 1; x <= Expo;...
Results 1 to 2 of 2