Hello all, i have a problem with an 'if' statement alway's being true. This is what i'm working on...
I've seen some interesting 'if' and 'else if' statement's before, what can i look for to increase my knowledge of these statement's, boolean algebra?Code:if (totalpoints > 150) //when totalpoints exceed's 350, this need's to be false { printf("\n\n\nYou have earned %d points, you are at level 2\n\n\n", totalpoints); gl_c = 2; } else if (totalpoints > 350) { printf("\n\n\nYou have earned %d points, you are at level 3\n\n\n", totalpoints); gl_c = 4; }
Any help would be much appreaciated.
Thank's.



LinkBack URL
About LinkBacks


