Consider the sequence 1, 4, 7, 10, 13. The sequence starts at 1, and adds 3 to get the next value. Write a method called upByThrees, which prints the first n numbers in this sequence in a column.
For example, upByThrees(4) should print:
1
4
7
10
My code is:
int N;
N = 1;
while (N < n)
{
System.out.println(N);
N = N+3;
}
How do you get it to print out x amount of numbers?

