fn main() { let mut multiples: Vec = vec![]; for num in 0..1000 { if num % 3 == 0 { multiples.push(num); } else if num % 5 == 0 { multiples.push(num); } } let sum: i32 = multiples.iter().sum(); println!("{}", sum); }