a) Find the output of the following program segment when
i) avg = 75
ii) avg = 65
int
avg;
char grade;
grade = avg>75 ? 'A': 'B';
System.out.print(“Result = “ + grade);
Answers
Answered by
2
output:-
- Result = B
- Result = B
Similar questions