xxxxxxxxxx
fn using_vec(size: i32) {
// vec with n elements, where first argument is default value
// second argument is the len of the vec, type must be a 'usize'
// Python similar 'x = [0] * size'
let var = vec![0; size as usize];
println!("{}", var.len());
for i in 0..var.len() {
println!("{}", var[i]);
}
}
fn main() {
using_vec(5);
}