BlangleglorbGiggledoo
BlangleglorbGiggledoo
CC#
Created by BlangleglorbGiggledoo on 2/6/2024 in #help
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
58 replies