Java Loops II

  • + 1 comment

    pow() gives a double value,but you are using an integer so the precision is lost..Type cast the pow() function to integer . You will get it done.