2008年10月30日 星期四

程式設計範例(韓信點兵)

#include
#include
using namespace std;
void main(){
for(int i=1;true;i++){
if(i%7==3 && i%9==4 && i%10==2 && i%11==0){
cout--endl<<"至少"--i<<"人";
break;
}
}
}

沒有留言: