How to dry run this program
<p>I am trying to learn the basics of dry running a program. This is the code i'm trying to practice on, i have  ideas on how to do this but i would like to confirm my ideas are correct by comparing with someone who knows what they are doing.</p>

<pre><code>   public class PracticeB {

     public static void main(String[] args) {

       int k;
       int cubed, squared
       for (k = 0; k &lt; 5; k++) {

         if (k &gt; 10) {
            System.out.print(k + ".");
            squared = k * k;
            cubed = squared * k;

            if (squared &gt;= 10) {
               System.out.print(squared);
            } else {
               System.out.print("0" + squared);
            ) 
            System.out.print(".");

            if (cubed &lt; 10) {
               System.out.print("0" + cubed);
            } else {
               System.out.print(cubed);
            }
            System.out.println();
         } else {
            System.out.println(-------"); 
       }
     }
   }
 }
</code></pre>
