#4455: 請問哪裡錯???


joey6504 (蟑螂)


#include<iostream>
using namespace std;
int main()
{
    int a,b;
    while(a*2+b%3 =0 )
    {
    cin>>a>>b;
    cout<<"普通";
    }
    while(a*2+b%3 =1 )
    {
    cin>>a>>b;
    cout<<"吉";
    while(a*2+b%3 =2 )
    {
    cin>>a>>b;
    cout<<"大吉";
     system("pause");
     return 0;
     }

#4456: Re:請問哪裡錯???


asas (向諸神與地雷醬獻上祈禱)


錯的非常離譜= =

能的話再把迴圈和if陳述式讀懂一點.....
#4460: Re:請問哪裡錯???


joey6504 (蟑螂)


錯的非常離譜= =

能的話再把迴圈和if陳述式讀懂一點.....
 
剛剛改了
#include<iostream>
using namespace std;
int main()
{
    int a,b;
    do
    {
    cin>>a>>b;
    if((a*2+b)%3==0)
    {
    
    cout<<"普通\n";
    }
    if((a*2+b)%3==1)
    {
    
    cout<<"吉\n";
    }
    if((a*2+b)%3==2)
    {
    
    cout<<"大吉\n";
     }
     }while(true);
     return 0;
}
      

#4461: Re:請問哪裡錯???


joey6504 (蟑螂)


剛剛改了 
#include
using namespace std;
int main()
{
    int a,b;
    while(a*2+b%3 =0 )
    {
    cin>>a>>b;
    cout<<"普通";
    }
    while(a*2+b%3 =1 )
    {
    cin>>a>>b;
    cout<<"吉";
    while(a*2+b%3 =2 )
    {
    cin>>a>>b;
    cout<<"大吉";
     system("pause");
     return 0;
     }


#4463: Re:請問哪裡錯???


joey6504 (蟑螂)


錯的非常離譜= =

能的話再把迴圈和if陳述式讀懂一點.....