lundi 13 mai 2019

Else and if function

if (tsk1>tsk2>&tsk1>tsk3) log1=log1+4;
    else if (tsk2>tsk1&tsk2>tsk3) log2=log2+4;
    else if (tsk3>tsk2&tsk3>tsk1) log3=log3+4;
    else if (tsk1=tsk2&tsk3<tsk1) log1=log1+2 log2=log2+2;
    else if (tsk1=tsk3&tsk1>tsk2) log1=log1+2 log3=log3+3;
    else if (tsk2=tsk3&tsk3>tsk1) log2=log2+2 log3=log3+3;
    else if (tsk1=tsk2=tsk3) log1=log1 log2=log2 log3=log3;

How can I make this code work it checks how many points each logotipe got from section and based on results add points to total

Aucun commentaire:

Enregistrer un commentaire