#5103: 請教一下...


Aidirifter (AIdrifter)


#include<iostream>
using namespace std;  
int main() {

     int M(0),D(0),S(0);
      
     cout<<"please enter M D"<<endl;
     
      while(cin>>M>>D){
     S=(M*2+D)%3;

     if(S==0) cout<<"普通"<<endl;
     if(S==1) cout<<"吉"<<endl;
     if(S==2) cout<<"大吉"<<endl;
     }

     return 0;
}

 

我在DEV C++  可以正常執行 搞不懂為什麼不對@@?