Ask your own question, for FREE!
Computer Science 19 Online
OpenStudy (anonymous):

Can you explain this conditional operator? (myGrade<=65)myGrade+10:myGrade=myGrade+5

OpenStudy (anonymous):

(myGrade<=65)?myGrade+10:myGrade=myGrade+5

OpenStudy (anonymous):

Well it seems as: "If myGrade is less than or equal to 65 return the value of myGrade plus 10. Otherwise (if it's bigger than 65) increase the value of myGrade by 5 and then return it"

OpenStudy (anonymous):

thanks

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!