fn main() { let base: i32 = 2; let exp: u32 = 5; println!("{}", base.pow(exp)); //32 }
fn main() { let base: i32 = 3; println!("{}", base.pow(2)); //9 }
fn main() { let base: i32 = 3; println!("{}", base.pow(3)); //27 }
初心者向け
問題集
SNS