Hey,
I'm trying to do some coursework, but I cant seem to understand why this code isn't working. I get errors associated with the <= and the 10)
As the code reads, i want the statement txtResult.... to occur if the total of totalA + totalB is greater than or equal to 9 and less than or equal to 10.
I've tried the OR operator too, ||, but still doesn't work.
Can anyone shine some light on this please?
Thanks in advance!
Em
I'm trying to do some coursework, but I cant seem to understand why this code isn't working. I get errors associated with the <= and the 10)
Code:
if (totalA + totalB >= 9 && <= 10)
{
txtResult.Text = ("i. Excellent if the overall score is 9-10");
}
As the code reads, i want the statement txtResult.... to occur if the total of totalA + totalB is greater than or equal to 9 and less than or equal to 10.
I've tried the OR operator too, ||, but still doesn't work.
Can anyone shine some light on this please?
Thanks in advance!
Em