Computer Science, asked by Ardon, 11 months ago

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 Anonymous
2

output:-

  1. Result = B
  2. Result = B
Similar questions