#!/bin/bashfor 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整除" fidone