fn main() {
let mut list = vec![1, 1];
let mut p = 2;
let mut k;
loop{
k = list[p-1]+list[p-2];
list.push(k);
p += 1;
if p >= 16 {
break;
}
}
println!("私のリスト: {:?}", list);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: