Search:

Type: Posts; User: sudesh

Search: Search took 0.07 seconds.

  1. Thread: Primitive types

    by sudesh
    Replies
    4
    Views
    1,590

    Re: Primitive types

    thanks. I did that and this is what i get. Why is "low" constantly changing its value, should it not have a set value of 2, that is what keeps confusing me.

    int low = 2;
    ...
  2. Thread: Primitive types

    by sudesh
    Replies
    4
    Views
    1,590

    Primitive types

    int low = 2;
    int high = 1;

    while (high < 10){


    System.out.println(high);
    int temp = high;
    high = high + low;
    low =...
Results 1 to 2 of 2