🌈 搜索
📅  最后修改于: 2022-03-11 14:52:00.308000             🧑  作者: Mango
x <- c(2,5,3,9,8,11,6) count <- 0 for (val in x) { if(val %% 2 == 0) { count = count+1 } }