Welcome to the CSC Q&A, where you can get help (and share your knowledge) about computer science!

Practice MT2: Q5

+7 votes
What are the answers to question 5 about more IF statements?

(Perhaps explain why for anything tricky?)
asked Jan 25, 2015 in (Winter 14) by Forrest Stonedahl (100 points)

1 Answer

+1 vote
a =

D
F
G

b =

C
G

c =

A
B
C
G
 

The tricky part is following the if, else if, else, and non captured println statements in the proper order.
answered Jan 25, 2015 by Greg Larson (100 points)
Looks good...
...