hw too solve the equation

write a programme in c++ to solve the equation a^2 + b^2 = c^2
Please note, that this is not a homework site. We won't do your homework for you. The purpose of homework is that you learn by doing. However we are always willing to help solve problems you encountered, correct mistakes you made in your code and answer your questions.

We didn't see your attempts to solve this problem yourself and so we cannot correct mistakes you didn't made and answer questions you didn't ask. To get help you should do something yourself and get real problems with something. If your problem is "I don't understand a thing", then you should go back to basics and study again.


What does "solve" mean here?
You have three variables: a, b, c, but only one equation. There are thus multiple "solutions".
... he didn't even say "please".
How does one solve Pythagorean's Theorem? :)
1
2
3
4
5
6
7
8
// solved for a
a = sqrt( c*c - b*b )

// solved for b
b = sqrt( c*c - a*a )

// solved for c
c = sqrt( a*a + b*b )
Topic archived. No new replies allowed.