Everybody has been there buddy :) it'll only get better and better with time. Glad to help out.
Type: Posts; User: Parranoia
Everybody has been there buddy :) it'll only get better and better with time. Glad to help out.
Variables created inside a loop will only exist while that loop is running. Take this as an example:
int num = 0;
for (int i = 0; i < 5; i++)
{
num = i * i;
int sum = 2;
}
Just think about the problem a bit more.
You are wanting to start at a given number, square it and print it out, then subtract one from it.
So just some example of pseudocode:
Create variable...