2 Star 3 Fork 0

thor / unisim

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
test8.c 327 Bytes
一键复制 编辑 原始数据 按行查看 历史
thor 提交于 2013-11-26 09:17 . neat cmsr
#include "stdlib.h"
int array[] = {1, 2, 3, 12, 2, 3, 5, 6, 8, 6};
int solve()
{
int i = 0;
int cnt = 0;
// int cnt2 = 0;
for (i = 0; i < 10; i ++) {
if (array[i] > 6) {
cnt += 1;
}
// if (array[i] <= 3) {
// cnt2 += 1;
// }
}
sys_putint(cnt);
// sys_putint(cnt2);
return 0;
}
int main()
{
solve();
}
C
1
https://gitee.com/thor/unisim.git
git@gitee.com:thor/unisim.git
thor
unisim
unisim
master

搜索帮助