I must have a syntax problem, but I cannot understand what this means - I googled, but I didn't understand the cause of this problem. Please tell me what is wrong in my function syntax
This is the line with the error:
else sequence= (Bnum < Anum) ? sequence=Bnum : sequence=Anum;
This is the function
int reduction(int Knum)
{
    int sequence=8, Anum=0, Bnum=0;
    printf("enter a sequence,to stop print (-1)\n");
    while(sequence!=-1)
    {
        Anum = sequence;
        scanf("%d",&sequence);
        Bnum = sequence;
        if (Anum+Bnum<8)
            return 1;
        else
            sequence= (Bnum < Anum) ? sequence=Bnum : sequence=Anum;
    }
    return 0;
}
 
     
     
     
     
     
     
    