What will be the value of variable ‘grade’ if percent=75. [2]
char grade=(percent>=80) ? ’A’ : ’B’; please give me the answer fast and it is a question of java so your answer also must agree with it
Answers
Answered by
1
MARK ME BRAINLIEST
Answered by
0
Answer:
Answered
Explanation:
'B' is the answer
Bcoz 75 is less than 80, so last option is chosen as per ternary operator rule.
PLS MARK AS BRAINLIEST
Similar questions