Search:

Type: Posts; User: divdat

Search: Search took 0.10 seconds.

  1. Replies
    9
    Views
    2,847

    Re: Help! Whats wrong with my code?

    Your method calls are wrong, they must be
    double smResult = smallest(x,y,z);
    double avgResult = average(x,y,z);
  2. Replies
    9
    Views
    2,847

    Re: Help! Whats wrong with my code?

    That might be because the 'if' is not having an ending '}'
  3. Replies
    9
    Views
    2,847

    Re: Help! Whats wrong with my code?

    Firstly, the 'main' method declaration is wrong. It has to be public static void main. You missed void

    --- Update ---

    else should not have condition, else (z < x && z < y)
    {return z;
    }

    It...
Results 1 to 3 of 3