Computer Science, asked by avi4817, 11 months ago

if( marks>= 65 && marks <= 8)
grade ='a';
else
grade = 'b';

rewrite this using ternary operator...​

Answers

Answered by radon358
1

Answer:

int grade = (marks>=65 && marks<=8)?a:b;

Similar questions