R语言中while循环 1、测试1 a <- c(3,8,2,7,4,9) i = 1while (i <= length(a)) { print(a[i]) i = i + 1} 1. 2. 3. 4. 2、测试2 f <- NA f[1] <- f[2] <- 1i <- 3while (i <= 10) { f[i] = f[i - 1] + f[i - 2] i = i + 1} f 1. 2. 3....