- #include<iostream>
- #include<cstdlib>
- using namespace std;
- main()
- {
- while(true)
- {
- int m, d, s;
- cout << "請輸入你的生日月分:" << endl;
- cin >> m;
- cout << "請輸入你的生日日期:" << endl;
- cin >> d;
- s = (m * 2 + d) % 3;
- if (s == 0)
- {
- cout << "普通" << endl;
- }
- else if (s == 1)
- {
- cout << "吉" << endl;
- }
- else
- {
- cout << "大吉" << endl;
- }
- system("pause");
- }
- return 0;
- }
複製代碼 |