Create a program that takes two numbers - one to count to and another to determine what multiple to use to get there.
Here is some sample input:
Count to: 30 Count by: 5 Output: 5, 10, 15, 20, 25, 30
Count to: 50 Count by: 7 Output: 7, 14, 21, 28, 35, 42, 49
here is my trial code.
var num1 = parseInt(prompt("Count to: "));
var num2 = parseInt(prompt("Count by: "));
for(let i = num2; i <= num1; i+num2){
}
console.log(i);
i+num2->i += num2console.log(i)needs to be inside the loop.