look at this code below
Code:
printf(“range =”);scanf(“%i”,&range);
printf(“target =”);scanf(“%i”,&target);
if( ( (range==target)>0) && ( (range==target)<10) )
when i compile this code, it isn’t the expected output i want
example, range=12 and target=12, it will go to else not if true
simple way says, the range==target must between >0 and <10
0 < range==target < 10
any ideas?