explain the syntax of ternary operator with an example
Answers
Answered by
1
Answer:
watch later by the following question is about to go to the following question is about to go to
Answered by
5
Answer:
string g = (marks>=80)? "A ":( marks>=70)?"B":"C"
Explanation:
The explanation goes like this that If Marks is greater than equals to 80 then grade is A
Else if marks is greater then equals to 70 then grade is B Else C
I hope this helps
Similar questions