Well, it all depends on your data. Of course, you'll want to use a loop and then stop and the data specification. Example:
I haven't tested the code, but logically that will work.
int numtimes, i;
printf("Enter how big the box is in length: ");
fgets(string, sizeof(string), stdin); // get string from std input
sscanf(string, "%d", &numtimes); // put int value into numtimes
for (i = 0, i < numtimes; i++)
BTW If you really want to get into visual programming, learn to program Windows (preferable with petzold).