I am making a program, in which I need to iterate the numbers, starting from 1
to num
then put the value of that array {1...num
} to a variable that can be called in the for
loop.
This is where I am at.
int main()
{
int num = 0;
cin >> num;
for (int i = 1; i <= num; i++)
{
procnum[i];
}
}
I need procnum[num]
to have a value like ...
int procnum[num] = {1,2,3...num};