Search:

Type: Posts; User: catisch

Search: Search took 0.11 seconds.

  1. Replies
    3
    Views
    4,802

    Re: help with trace tables for loops

    Sorry, that's just the way it looked in the book

    public class Practice {

    public static void main(String[] args) {

    int i = 10;
    int j = 0;
    int n = 0;
  2. Replies
    3
    Views
    4,802

    help with trace tables for loops

    For my java homework I have to provide a trace table for the following loop:

    int i = 10; int j = 0; int n = 0;
    while (i > 0) { i--; j++; n = n + i - j; }

    When I put it into eclipse I get the...
Results 1 to 2 of 2