Search:

Type: Posts; User: Cornix

Search: Search took 0.13 seconds.

  1. Replies
    11
    Views
    1,866

    Re: pythagorean triples using a for loop

    Because it isnt.
    You have a value on the left hand side of the assignment operator, and a value on the right hand side.

    It is as if you would write "5 = 2 + 2". Its not an assignment, its not...
  2. Replies
    11
    Views
    1,866

    Re: pythagorean triples using a for loop

    Could you try to explain to us what you are trying to do in the erroneous line?
    Try to explain it step by step:

    Math.pow(hypotenuse,2)=Math.pow(side_1,2)+Math.pow (side_2,2);
  3. Replies
    11
    Views
    1,866

    Re: pythagorean triples using a for loop

    If I try to compile this code I get very different errors. Are you sure you copied the right output?
Results 1 to 3 of 3