java求用while 0-100能被三整除不能被七整除的数..
伪代码:
int i = 0; while(i<=100){ if(i % 3 == 0 && i % 7 != 0){ System.out.println(i); } i++; }