© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
57 replies
BlangleglorbGiggledooIII

I need help with for loop homework :(

My coding teacher wants me to tell how he got 3 from the following code but I don't get it at all since this is like my third class and he doesn't exactly teach in a way I understand things easily. Could someone just tell me what's going on here? Help would be greatly appreciated since I don't want him getting mad at me!

int score = 0;
int points = 10;

int score = 0;
int points = 10;

for(int i = 0; i<3; i++)
{
  for (int j = 0; j<10; j++)
  {
    score += points;
  }
  score /= points;
}
int score = 0;
int points = 10;

for(int i = 0; i<3; i++)
{
  for (int j = 0; j<10; j++)
  {
    score += points;
  }
  score /= points;
}

edit: formatting
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

❔ need help with homework (while loop)
C#CC# / help
3y ago
Need help with homework
C#CC# / help
3y ago
Need help for loop
C#CC# / help
4y ago
✅ Help with Homework
C#CC# / help
3y ago