![]() |
|
Pythagorean Theorem Calculator - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Python (https://sinister.li/Forum-Python) +--- Thread: Pythagorean Theorem Calculator (/Thread-Pythagorean-Theorem-Calculator) Pages:
1
2
|
Pythagorean Theorem Calculator - Tear - 11-09-2013 Pythagorean Theorem: leg1 squared + leg2 squared = x sqrt of x = hypotenuse This program finds the hypotenuse. I added time just for the fun of it :3 Code: import math
import time
print("Welcome to 'insertnamehere''s Pythagorean Theorem calculator!");
time.sleep(3)
leg1 = int(input("Input the first leg's length."));
leg2 = int(input("Input the second leg's length."));
sta = leg1 * leg1 + leg2 * leg2
answ = math.sqrt(sta)
print(answ, "is the length of the hypotenuse.");RE: Pythagorean Theorem Calculator - Feat - 11-09-2013 Not bad, not bad. Even though A2+B2=C2 is rather simple. RE: Pythagorean Theorem Calculator - Tear - 11-09-2013 (11-09-2013, 04:25 AM)Feat Wrote: Not bad, not bad. Even though A2+B2=C2 is rather simple. *A2+B2=C2 sqrt C2 But yeah, it's simple as fuck. I just like making stuff. RE: Pythagorean Theorem Calculator - Feat - 11-09-2013 (11-09-2013, 04:26 AM)Tear Wrote: *A2+B2=C2 sqrt C2 I wasn't talking about the program fgt, I was talking about the Theorem. Its so easy to do and if you need a calc you shouldn't be in whatever grade you are :3 RE: Pythagorean Theorem Calculator - Tear - 11-09-2013 (11-09-2013, 04:27 AM)Feat Wrote: I wasn't talking about the program fgt, I was talking about the Theorem. Its so easy to do and if you need a calc you shouldn't be in whatever grade you are :3 Look nigga, I own 10 goats, 3 cows, and a Ferrari Enzo. I'm in 8th grade btw, I don't NEED a calculator, I was bored. RE: Pythagorean Theorem Calculator - Feat - 11-09-2013 (11-09-2013, 04:28 AM)Tear Wrote: Look nigga, I own 10 goats, 3 cows, and a Ferrari Enzo. I wasn't saying you did, just saying. Listen, I make $20,000 a day, own 4 Ferrari's and have more than 300 kids. RE: Pythagorean Theorem Calculator - Tear - 11-09-2013 (11-09-2013, 04:32 AM)Feat Wrote: I wasn't saying you did, just saying. Listen, I make $20,000 a day, own 4 Ferrari's and have more than 300 kids. I have 3 egyptian wives, I make 10924901284802714219048294$ a millisecond and own the us government, every chinese nuke in existence, and obama. please go die RE: Pythagorean Theorem Calculator - Feat - 11-09-2013 (11-09-2013, 04:34 AM)Tear Wrote: I have 3 egyptian wives, I make 10924901284802714219048294$ a millisecond and own the us government, every chinese nuke in existence, and obama. I own everything that will come into existence. GGWP. RE: Pythagorean Theorem Calculator - Tear - 11-09-2013 (11-09-2013, 04:35 AM)Feat Wrote: I own everything that will come into existence. GGWP. YOU DONT OWN MY SLOPE CALCULATOR, BITCH RE: Pythagorean Theorem Calculator - Feat - 11-09-2013 (11-09-2013, 04:36 AM)Tear Wrote: YOU DONT OWN MY SLOPE CALCULATOR, BITCH "I own everything that will come into existence" |