@shiftasterisk
Please run your code through a compiler before posting it here. Your for statement is going to confuse the OP.
Type: Posts; User: Norm
@shiftasterisk
Please run your code through a compiler before posting it here. Your for statement is going to confuse the OP.
Post the code and ask your questions about what you want it to do.
Do things one at a time:
make a loop that goes for exponent times
when that works
compute the value inside of the loop using the...
For testing just print out the value of the index.
When you can get the loop working like you want, then add code to compute the value to be printed.
The variable that contains the computed...
Please edit your post and wrap the code in code tags
BB Code List - Java Programming Forums - The Java Community
You should use descriptive variable names, not x and y. The two values you are...
Please post what you have so far.
Start with a variable with a value of 1 and multiply it by the base and save that value and then loop and do it again until done.