Your question is a bit opaque, but you can do it via including all your code into a big while loop and ask at the end for a further loop. Else you can check against some value and re ask for as bigger value.
On both way I suggest that you make more output to the user, so he knows where he is and what is the meaning of the next input. Like
for (int i = 0; i < k; i++)
{
cout << "Input for step: " << i;
cin >> step[i];
}