Hey guys, I'm in an AP Java class that unfortuneatly ive fallen behind in. I'm trying to answer a question:
write a method (method1) that uses a for loop to print out all the numbers between "a" and "b" (inclusive) that are divisible by "c". It returns nothing.
The beginning of my for loop is"
for (int i = a; i<= b; i++)
I cant really figure out what I have to do though. I realize that a/c has to equal an int.
Any tips?
write a method (method1) that uses a for loop to print out all the numbers between "a" and "b" (inclusive) that are divisible by "c". It returns nothing.
The beginning of my for loop is"
for (int i = a; i<= b; i++)
I cant really figure out what I have to do though. I realize that a/c has to equal an int.
Any tips?