how to add integer and float in rust. Copy fn main(){ let x:f32=20.0; let y:i32=10; let sum = x + y as f32; println!("{}",sum); }.
確定! 回上一頁