问题1:100以内数,计算出有几个3的倍数
int num = 0;for(int i= 1;i < 100;i ++){if(i % 3 == 0){num ++;}}System.out.println(num);