Question Need help asap!!
in
Programming Questions
•
3 years ago
What is the output of the following Processing code fragment?
What is the output if the last part of the loop header is changed to “i = i + 2”?
int i;
int x;
for (i = 0; i < 25; i = i + 1)
{
x = (i * i) + 2;
println("Next value: " + x);
}
I am completely confused, do not even know where to begin(very new to processing). Any tips or suggestions would be greatly appreciated!
1