write a program which asks the user for an integer x. the program then outputs the values from 1 to 1000 as x numbers per line, where x is the value that the user entered. you must use only 1 loop for this. validate x to make sure that the numbers per line value is between (10 to 30).