Matthew M. answered 03/12/20
Master's Degree in Electrical and Computer Engineering
Okay so from the code you have posted there I'm assuming you want to print 10 numbers that increment by the original number? For example.
User input of 5 would print
5 10 15 20 25 30 35 40 45 50
If so the following code will do that
Scanner input = new Scanner(System.in);
System.out.println("Enter a value");
int alpha = input.nextInt();
int START = alpha;
final int STOP = 500; //i dont think you need this anymore
final int NUMBER_PER_LINE = 10;
//we only run our for loop for the number of 'numbers' we want to print. 0 to 9 is 10 values
for(int i = 0; i < NUMBER_PER_LINE; i++)
{
System.out.print(START + " ");
START = START + alpha; //increase current number by user input value
//when we get to the last number that we want to print, print a new line
if(i == NUMBER_PER_LINE - 1){
System.out.println();
}