S
Stef
Hello,
I have a question that maybe some of you could answer because I don't
know how to do this:
I want the user to be able to define how many itterations or better
loops should spawn... The problem is that they have to be executed at
the same time..
My program looks like:
#include <stdio.h>
int main(int argc, char *argv[]) {
int i, j, k, l;
for(i = 0; i <= 9; i++)
for(j = 0; j <= 9; j++)
for(k = 0; k <= 9; k++)
for(l = 0; l <= 9; l++)
printf("%d%d%d%d\n", i, j, k, l);
return 0;
}
But I want the user to be able to define the digit width...
As you can see I am a beginner who's a bit stuck..
Thank you for the answers....
Stef.
I have a question that maybe some of you could answer because I don't
know how to do this:
I want the user to be able to define how many itterations or better
loops should spawn... The problem is that they have to be executed at
the same time..
My program looks like:
#include <stdio.h>
int main(int argc, char *argv[]) {
int i, j, k, l;
for(i = 0; i <= 9; i++)
for(j = 0; j <= 9; j++)
for(k = 0; k <= 9; k++)
for(l = 0; l <= 9; l++)
printf("%d%d%d%d\n", i, j, k, l);
return 0;
}
But I want the user to be able to define the digit width...
As you can see I am a beginner who's a bit stuck..
Thank you for the answers....
Stef.