#include <iostream>
using namespace std;
int main() {
int M,D,S;
while(cin >> M >> D){
S = (M * 2 + D)%3;
switch( S )
{
case 0:
cout << "普通";
break;
case 1:
cout << "吉";
break;
case 2:
cout << "大吉";
break;
}
}
return 0;
}
問一夏
為什麼這樣錯?
我是國一生^^
歡迎大家指教
#include <iostream>
using namespace std;
int main() {
int M,D,S;
while(cin >> M >> D){
S = (M * 2 + D)%3;
switch( S )
{
case 0:
cout << "普通";
break;
case 1:
cout << "吉";
break;
case 2:
cout << "大吉";
break;
}
}
return 0;
}
問一夏
為什麼這樣錯?
我是國一生^^
歡迎大家指教