if ($Score >= 85) then
{
Result = $Result cat "PASS";
}
if ($Score <= 85) then
{
Result = $Result cat "FAIL";
}
printf ("You "$Result" the exam.");
Pseudocode.Cat? Plus 4th line is Wong

should I be worried that the only icon without unread notification is twitter?
print instead of printf? Probably.
print instead of printf? Probably.
Sorry, head stuck in bash.
That would be the correct solution that wouldn't output "FAILPASS".And the new entry I put
if ($Score <= 84) then
That would be the correct solution that wouldn't output "FAILPASS".
Or even just "$Score < 85".
And using "else if" would be best.
But if you use ">= 85" for one, and "<=85" for the other, both statements are true when the score is exactly 85 and you get "PASSFAIL", that's what I was getting at.
It's something teachers try to drill into students, avoiding the common and obvious edge cases.
When kids first encounter this type of problem, the most common error is to write a case for "X<N" and one for "X>N" and not have a case for "X=N" and the teacher uses that example to tell you to always always always use ">=" or "<=" when working with such comparisons so every eventuality is covered.
Are ya jealous 'cause a tiger is packing more than you?Odd that they put it on there with an erection.
![]()
*Diarrh-ower!