#8665: 這錯哪裡啊?


eric634a (F.D.)


#include <iostream>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;

int main(int argc, char *argv[]) {
int m,d,s;
while(cin >> m >> d){
s=(m*2+d)%3;
if(s=0){
cout << "普通" << endl; 
}
else{
if(s=1){
cout << "吉" << endl;
}
else
cout << "大吉" << endl; 
}
}
return 0;
}
#8666: Re:這錯哪裡啊?


eric634a (F.D.)


已解決   謝謝