- #include <iostream>
- #include <cstdlib>
- using namespace std;
- int main()
- {
- int m,d,s;
- cout<<"算算今日的運勢吧!!"<<endl;
- cout<<"幾月生呢??!";
- cin>>m;
- cout<<m<<"月幾號呢??";
- cin>>d;
- s=(m+d)*365%4;
- if(s==3)
- {
- cout<<"大吉!去買張樂透吧!!"<<endl;
- cout<<endl<<endl<<endl<<endl<<endl<<"別再玩了!去讀書吧!"<<endl;
- }else if (s==2)
- {
- cout<<"今天有點帶ㄙㄨㄟ喔!! "<<endl;
- cout<<endl<<endl<<endl<<endl<<endl<<"別再玩了!去讀書吧!"<<endl;
- }else if (s==0)
- {
- cout<<"走路要小心點,不然會踩到狗屎喔"<<endl;
- cout<<endl<<endl<<endl<<endl<<endl<<"別再玩了!去讀書吧!"<<endl;
- }else if(s==1)
- {
- cout<<"根本人生勝利組!!!"<<endl;
- cout<<endl<<endl<<endl<<endl<<endl<<"別再玩了!去讀書吧!"<<endl;
- }
-
- system("pause");
- return 0;
- }
複製代碼 |