The product of two consecutive integers is 240. Find the integers.
Still Need Help?
Join the QuestionCove community and study together with friends!
Sign Up
OpenStudy (eyust707):
wel lets see an interger is a number like ...-3, -2 -1, 0 , 1 , 2, 3....
OpenStudy (eyust707):
a consecutive interger would be two right next to each other
OpenStudy (eyust707):
like:
1 and 2
OpenStudy (eyust707):
2 and 3
OpenStudy (eyust707):
3 and 4
Still Need Help?
Join the QuestionCove community and study together with friends!
Sign Up
OpenStudy (eyust707):
"product" means multiplication
OpenStudy (eyust707):
so just start guessing..
OpenStudy (eyust707):
1 x 2 = 2 ... nope
OpenStudy (eyust707):
2x 3 = 6 ... nope
OpenStudy (eyust707):
3 x 4 = 12 ... nope
Still Need Help?
Join the QuestionCove community and study together with friends!
Sign Up
OpenStudy (eyust707):
10 X 11 = 110 .. nope
OpenStudy (eyust707):
keep guessing till you get it
OpenStudy (anonymous):
#Find which two consecutive integers give us the product
def consecInts(product):
p = 0
a = 0
b = 1
while p != product:
a += 1
b += 1
p = a * b
print a
print b
consecInts(240)
OpenStudy (anonymous):
yay python!
OpenStudy (anonymous):
So if I continue to multiple to get to 240 then that will bring me to the integers answer?
Still Need Help?
Join the QuestionCove community and study together with friends!
Sign Up
OpenStudy (anonymous):
let the computer do the grunt work for you
OpenStudy (eyust707):
pop jump- take a look at what I have written... just multiply two numbers together until you get it
OpenStudy (eyust707):
the only condition is they have to be consecutive
OpenStudy (eyust707):
try:
11 x 12 =??
12 x 13 =??
13 x 14 =??
14 x 15 = ??
15 x 16 = ??
OpenStudy (eyust707):
do any of those equal 240?
Still Need Help?
Join the QuestionCove community and study together with friends!