MATLAB: [Matlab] The product of three consecutive integers is 778596.Determine what these three integers are

MATLAB: [Matlab] The product of three consecutive integers is 778596.Determine what these three integers are

for loophomeworkwhile loop

The product of three consecutive integers is 778596.Determine what these three integers are.I have tried using for loop and while loop but i couldnt get the answer.Please help me.
Answer is 91,92,93

Best Answer

  • “I have tried using for loop and while loop”
    Seriously? How would you solve this trivial problem by hand? You’d simply solve the equation
    x * (x+1) * (x+2) = 778596
    This is trivial to solve in matlab.
  • Add a Comment

    Your email address will not be published. Required fields are marked *