Hey guys.Have written some code but wanted to make sure im on the right lines. Is there anyway i can make this more efficient? Although the program works is it generally preferred to try and minimise the if lines and put it intp less lines with more OR's and ANDS? Also is the way i have used variables for validation considered good conduct?
The program reads pre written scores (a, b, c) in a set format (eg. 50 60 80) and returns a pass distinction or fail based on various conditions.
You do realise that if a b c is 80 80 80 for example. Pass will equal 3 and destinction will equal 3. Is this what you wanted to happen? Sorry if I'm just misunderstanding, but I don't really get what the purpose of it doing this is.