2013年11月8日 星期五

#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
⋯⋯int a,b,c,d;
cout<<"請輸入1個月份"<<endl;
cin>>a;
cout<<"請輸入1個日"<<endl;
cin>>b;
if ((a*2+b)%3==0)
{
cout<<"運勢是大吉"<<endl;
}
else if ((a*2+b)%3==1)
{
cout<<"運勢是普通"<<endl;
}
else
{
cout<<"運勢是大凶"<<endl;
}
}

沒有留言:

張貼留言