Need help squashing a simple bug (b=a+b);
Go to solution
Solved by RainColt,
3 minutes ago, Fasauceome said:What language is this? Have you tried b+=a?
Its java, basically the same thing as c#.
I haven't but I just solved it. int b = 0; needed to be declared outside of the loop because it reset b back to 0 every time it looped
-
Featured Topics
-
Topics
-
7
-
Bonznumber1 ·
Posted in Windows0 -
0
-
aqarwaen29 ·
Posted in CPUs, Motherboards, and Memory2 -
13
-
3
-
IBM_THINKPAD_R51 ·
Posted in Servers, NAS, and Home Lab0 -
5
-
1
-
1
-
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now