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
-
em_lab ·
Posted in Power Supplies1 -
0
-
Johno Duderino ·
Posted in Networking0 -
2
-
1
-
2
-
Dan1718 ·
Posted in Troubleshooting1 -
1
-
Zexer2020 ·
Posted in CPUs, Motherboards, and Memory2 -
martixy ·
Posted in Phones and Tablets1
-
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