169k views
20 votes
What is the value of grade after the segment of code executes int result = 95?

if (result >= 90) grade = "A";
if (result >= 80) grade = "B";
if (result >= 70) grade = "C";
if (result >= 60) grade = "D";
else grade = "E";
Asnwer Choices
1.A
2.B
3.C
4.D
5.E

What is the value of grade after the segment of code executes int result = 95? if-example-1

1 Answer

6 votes

Answer:

the answer is A

because 80 to 90 is B

so 90 to 100 is A

User A For Alpha
by
3.6k points