Back To Normal

Subscribe To Our E-Mail Newsletter

Friday, June 20, 2014

Need to find three integers which can equal Pythagoras' Theorem (a^2+ b^2= C^2) and a+b+c=1000


Couch ModePrint It

Have tried with some math logics to solve this problem .
 a^2+ b^2= C^2
 a+b+c=1000

Finally with help of computer solved this problem..

for a in 1..500
  for b in 1..500
    for c in 1..500
      if (a+b+c) == 1000
        if (a*a) +(b*b) == (c*c)
          p a,b,c
          exit
        end
      end
    end
  end
end

Results : 200 ,375 ,425

Click Here For Smileys :D
:D
:)
:[
;)
:D
:O
(6)
(A)
:'(
:|
:o)
8)
(K)
(M)

No comments:

560 Free Online Courses

Top 200 universities launched 500 free online courses.  Please find the list here .