none
PYTHAGOREAN THEOREM RRS feed

  • Question

  • I am trying to write a program to calculate if there are any whole numbers in a Pythagorean theorem where A and B are equal (a*a)+(a*a)=c squared and the square root of c is also a whole number.  it is simple program to write I know, but how do I write a "IF Then" that would only give a whole number without rounding it off?  if (c=math.integer) then... or if (c=math.wholenumber) then...?
    Sunday, June 25, 2017 4:59 PM

Answers

All replies