jeudi 22 octobre 2015

Difference between `if` statements

Am newbie in programming, just curious, what is the difference between

if(a == 1)
{
    //condition
}
if(b == 1)
{
    //condition
}

and

if(a == 1 || b == 2)
{
    //condition
}

Aucun commentaire:

Enregistrer un commentaire