I have 3 integer as input: a
, b
and c
.
I'm trying to create a function to calculate the number progress
at which a match will occur.
I used the following code to output the number and then the combination of input numbers. I'm trying to create a function where I can input a
, b
, and, c
and it will return the progress
for which x==a,
y==band
z==c`.
int progress = 0;
for (int x = 0; x <= 160; x++) {
for (int y = 0; y <= 160; y++) {
for (int z = 0; z <= 160; z++) {
progress++;
System.out.println(progress + " " + x + " " + y + " " + z);
}
}
}