Hi All;
Have what I hope is an easy question that is driving me insane. I hope this isn't terribly stupid as I am new to Java. I have an int digitCount and this is what I am trying to do. Simply...
System.out.println(10^(digitCount)); ... and is ^ even to the power of? When I try the same line replacing (digitCount) with 2, the result I get is 8 ?
The result I am trying to get is 10 to the power of the value of digitCount. Is there a way to do this without using a recursive method?
TIA!!!!
Have what I hope is an easy question that is driving me insane. I hope this isn't terribly stupid as I am new to Java. I have an int digitCount and this is what I am trying to do. Simply...
System.out.println(10^(digitCount)); ... and is ^ even to the power of? When I try the same line replacing (digitCount) with 2, the result I get is 8 ?
The result I am trying to get is 10 to the power of the value of digitCount. Is there a way to do this without using a recursive method?
TIA!!!!