chevron_left chevron_right
Login Register invert_colors photo_library


Stay updated and chat with others! - Join the Discord!
Thread Rating:
  • 0 Vote(s) - 0 Average


Pythagorean Theorem Calculator filter_list
Author
Message
Pythagorean Theorem Calculator #1
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.");

Reply

RE: Pythagorean Theorem Calculator #2
Not bad, not bad. Even though A2+B2=C2 is rather simple.

Reply

RE: Pythagorean Theorem Calculator #3
(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.

Reply

RE: Pythagorean Theorem Calculator #4
(11-09-2013, 04:26 AM)Tear Wrote: *A2+B2=C2 sqrt C2
But yeah, it's simple as fuck.
I just like making stuff.

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

Reply

RE: Pythagorean Theorem Calculator #5
(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.

Reply

RE: Pythagorean Theorem Calculator #6
(11-09-2013, 04:28 AM)Tear Wrote: 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.

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.

Reply

RE: Pythagorean Theorem Calculator #7
(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

Reply

RE: Pythagorean Theorem Calculator #8
(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.
please go die

I own everything that will come into existence. GGWP.

Reply

RE: Pythagorean Theorem Calculator #9
(11-09-2013, 04:35 AM)Feat Wrote: I own everything that will come into existence. GGWP.

YOU DONT OWN MY SLOPE CALCULATOR, BITCH

Reply

RE: Pythagorean Theorem Calculator #10
(11-09-2013, 04:36 AM)Tear Wrote: YOU DONT OWN MY SLOPE CALCULATOR, BITCH

"I own everything that will come into existence"

Reply






Users browsing this thread: 1 Guest(s)