I am new to programming. I am doing my homework and the codes work so I won't post my whole codes out. I just wonder if it is possible to add "&&" and "||" in the same condition - my condition is a must be equal to 16 and b equal to any number from 5-9. Any suggestions? e.g.
if ( a == 16)
{
if (b == 5 || b == 6 || b == 7 || b == 8 || b == 9 )
{
printf("you pass\n");
}
}
Thanks a lot :)