#!/bin/bash
for i in {1..100};do
a2=$(($i % 2))
a3=$(($i % 3))
if test $a2 -eq 0 -a $a3 -eq 0 ;then
echo "$i能被2和3整除"
fi
done
1-100中能被2且被3整除的数
原创wx58caa2d64c6c4 博主文章分类:shell ©著作权
文章标签 1-100中能被2且被3整除的数 文章分类 云平台 云计算
上一篇:case练习
下一篇:1-100中能被2且被3整除的数
-
HW期间AD域被攻击,有没有国产方案能替代微软AD?
hw期间AD域极易被攻击甚至打穿,企业出于信息安全增强需求及信创改造需求,需寻找能替代微软AD的国产化方案。宁盾国产化身份域管可以接管AD位,代替AD作为企业新一代身份基础底座。
ad域替代方案 微软AD替代 护网 Windows 活动目录 -
1-100中能被2且被3整除的数
1-100中能被2且被3整除的数
1-100中能被2且被3整除的数 -
能被整除的数
题解:题解:充斥原理,用二进制优化表示选和没选,选的质数个数为奇数的时候加入答案,偶数时候
数论 i++ #include c++