System.out.println("Your salary is: "+ (a+1000) + " dollars per month.");
VENKATES WARAN
Level 4
resolved
Under discussion
Comments (3)
- Popular
- New
- Old
You must be signed in to leave a comment
Brad Reed
16 June 2020, 07:15
That’s the line I have, it shows the increased amount but then says I didn’t add, despite it reflecting that I did
0
Sarah Beth Benes
28 June 2020, 18:43
You didn't increase a. So, this will print out the increase, but not save it. (To print the check). You need a second line.
First increase a (a+=1000)
Then print the line.
+1
CitizenBoredom
10 June 2020, 00:14
Make sure you're paying attention to the int lessons leading up to this one.
0