Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Login
Home
Popular
Topics
Gaming
Programming
HubTaken
Posts
Comments
C
C#
•
Created by HubTaken on 12/3/2022 in
#help
✅ I don't know why this doesn't work.
thank you for the help. what do I do with this post? delete it or move it to "closed" or something?
16 replies
C
C#
•
Created by HubTaken on 12/3/2022 in
#help
✅ I don't know why this doesn't work.
I figured it out.
currentCalories += currentCalories + number;
my logic is bad.
currentCalories = currentCalories + number;
16 replies
C
C#
•
Created by HubTaken on 12/3/2022 in
#help
✅ I don't know why this doesn't work.
it is getting there but the value of highestCalories is 166752036 which is way too big
16 replies
C
C#
•
Created by HubTaken on 12/3/2022 in
#help
✅ I don't know why this doesn't work.
yeah. space is being printed when string input parsing fails.
16 replies
C
C#
•
Created by HubTaken on 12/3/2022 in
#help
✅ I don't know why this doesn't work.
16 replies
C
C#
•
Created by HubTaken on 12/3/2022 in
#help
✅ I don't know why this doesn't work.
it is being printed.
16 replies
C
C#
•
Created by HubTaken on 12/3/2022 in
#help
✅ I don't know why this doesn't work.
yep. it wasn't being set to 0. the value of currentCalories just keeps being added up.
16 replies