Search:

Type: Posts; User: Shambolic

Search: Search took 0.11 seconds.

  1. Re: I can't find out what is wrong with my code. Please Help!

    Oh wait, now I see why what you're doing is wrong. For A, B, C to form a triangle, it has to be true that A+B>C, A+C>B and B+C>A. In other words, all three have to be true. The reason your program...
  2. Re: I can't find out what is wrong with my code. Please Help!

    You have written


    else if(A+C>C)

    when you intended


    else if(A+C>B)
Results 1 to 2 of 2