Computer Science, asked by tanveerghai3660, 8 months ago

explain the syntax of ternary operator with an example​

Answers

Answered by saritarokade616
1

Answer:

watch later by the following question is about to go to the following question is about to go to

Answered by tiyasha142005
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