Search:

Type: Posts; User: miss confused

Search: Search took 0.10 seconds.

  1. Replies
    9
    Views
    4,843

    Re: Looping Question

    for(int i=1; i<=n; i++){
    prints out n amount of


    for(int i=1; i<=n; i+=3){
    prints out until n


    for(int i=1; i<=n; i++){
    System.out.println(i);
  2. Replies
    9
    Views
    4,843

    Re: Looping Question

    I'm being asked to print out in lets just say upByThree(4) four of the numbers in the following sequence of my code. With my code, I can either write that code up to a certain number or have it less...
  3. Replies
    9
    Views
    4,843

    Looping Question

    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.
    ...
Results 1 to 3 of 3