How do I complete exercise 3 from "Art & Science of Java", Chapter 4?
<p>I have to write a program that reads in a positive int, and then calculates and displays the sum of the first N odd ints. For example, if N is 4, the program should display the value 16, which is 1 + 3 + 5 + 7.</p>

<p>Here's what I have so far, but I've come up against a brick wall, and would appreciate a point in the right direction. </p>

<pre><code>import acm.program.*;

public class OddIntegers extends ConsoleProgram {

    public void run() {
        println("This program adds the number of odd numbers");
        int n = readInt("Enter a positive number: ");
        int b = 1;
        for (int i = 0; i &lt; n; i++);
            b = b + (b + 2);

        println("The total is " + b);   
    }
}
</code></pre>
