Question: Define the method printVals() that takes two integer parameters and outputs all integers starting with the first and ending with the second parameter, each
Define the method printVals() that takes two integer parameters and outputs all integers starting with the first and ending with the second parameter, each multiplied by 1000 and followed by a newline. The method does not return any value. Ex: If the input is 15, then the output is: 1000 2000 3000 4000 5000 Note: Assume the first integer parameter is less than the second. 5 static void printvals(int x, int y){ 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21} Check int i; for (1-x; x
Step by Step Solution
There are 3 Steps involved in it
The error that exist in the pr... View full answer
Get step-by-step solutions from verified subject matter experts
