Rust provides exponentiation via methods pow and checked_pow . The latter guards against overflows. Thus, to raise 2 to the power of 10, do:
確定! 回上一頁