42.8k views
3 votes
What will be output of this program a. less than 10 b. less than 20 c. less than 30 d. 30 or more

What will be output of this program a. less than 10 b. less than 20 c. less than 30 d-example-1

1 Answer

4 votes

Answer:

D. 30 or more

Step-by-step explanation:

The score value is passed in as var, meaning, its value could change. In this instance score started at zero and 30 was added to it. The last condition is the only condition that fits score's value(if that makes sense). So its in fact D.

hope i was able to help ;)

User Casey L
by
4.5k points