-
more variable help
ok now that i finally got that little problem with the variable out of the way im now into the if function in my tutorial. i understand it and all i was just wondering though how can i make it determine if the entered number is inbetween a set a of numbers.
ex.
if(a<13)
{
printf("text here");
}
else if(a inbetween 2 numbers)
{
printf("text here");
}
thanks
-
Code:
if ( a < VAL )
printf ( "Text here" );
else if ( a >= LOWVAL && HIGHVAL >= a )
printf ( "Text here" );
This checks if a is less than val, if that fails then it checks if a is between LOWVAL and HIGHVAL or equal to either.
-Prelude
-