Share your repls and programming experiences

← Back to all posts
##### Pythagorean Triples

I am so tired... T~T

I finally finished it, after slacking off for a few days (やった!)

This was honestly a bit frustrating to make.. (Lol)

This calculates all Pythagorean Triples (right triangles that have integer values as their side lengths) with a hypotenuse of less than 100, and displays them!

Note. You may need to run it once or twice, it sometimes doesn't display all of them, and I do not know why..

(╥_╥)

hotnewtop
Warhawk947 (527)

@LizFoster strikes again

with another amazing project

LizFoster (640)

@Warhawk947 Ha ha ha ha, thank you! I try my best to make quality work for this forum. ^ ^*

DJWang (1354)

Bam! Mind BLOWN.

DJWang (1354)

@LizFoster By the way, how did you get your content creator badge? They don't call you that for nothing! You must have done something pretty cool to get that!

LizFoster (640)

@DJWang Oh, well, one of the mods saw all the posts I had made, and thought they were the kind of high-quality work you want to see on repl, so he gave it to me!

Yeah, it's my goal to make high-quality and interesting posts for everyone to enjoy. #^__ ^#

CodingCactus (4360)

Very cool, well done again

luffy223 (6)

yeah cool triangls . you could draw hero and superhero triangls
https://youtu.be/UIjeCKPHbso thier discription

we are still witing for pi's third approximation bye

LizFoster (640)

@luffy223 What do you mean, 'witing for pi's third approximation' ? 𝛑 has many, many approximations, why would you be waiting?

LizFoster (640)

@luffy223 Oh, yes, right. That one. My questions kind of remain unanswered in this sense, in that I do not understand how to code the `f(x)` part..

Is that just multiplying the `x` component by whatever `f(x)` is set to equal?

luffy223 (6)

finally I made my first rymen sum
it has some flaws but it works
if you wana see it go to my page and it is called ryman sum it can work only for n = 10 if you could solve the proplem as for f(x) to solve your proplem i used while loop a tirring task @LizFoster

LizFoster (640)

@luffy223 Done! I finished it! It worksssssssssss!!!!

[deleted]

wow. i didn't know so many a2 + b2 = c2 where c >= 100 existed

LizFoster (640)

@Thecrowbar1234 Yeah, there are actually a lot more than you would think! And as far as I know they just keep getting more and more common as you go!

Highwayman (1483)

👌 noice :P

Our schedules are so different XD wow.

LizFoster (640)

@Highwayman Thank you!

Also, yes, they certainly are! wwwww

Highwayman (1483)

@LizFoster O.o wait your still awake, I thought you went to sleep! XD

LizFoster (640)

@Highwayman I attempted to, but I can't sleep for some reason! (Lol)

Highwayman (1483)

@LizFoster hmmm have you tried drinking an extremely large glass of water with three chunks of garlic and- jk. Lol I hope you find something that helps you sleep :)

LizFoster (640)

@Highwayman Yes, I hope so too.. (Lol)

Highwayman (1483)

@LizFoster it seems.. that I went to sleep.. for.. you...????

LiamDonohue (294)

wow this is really cool! (now go get some sleep lol)

LizFoster (640)

@LiamDonohue Thank you! Unfortunately, I cannot sleep ~_~

CodingCactus (4360)

hi @LizFoster, I don't know too much about maths, but is this right?

https://repl.it/@CodingCactus/Pythagorean-Triple

LizFoster (640)

@CodingCactus Cannot sleep ._.

Yes, it is all correct! Just added a few optimizations and cleaned it up. Let me know what you think:

https://repl.it/@LizFoster/Pythagorean-Triple

CodingCactus (4360)

@LizFoster looks nice, but you should really try to get to sleep instead of checking repl.it ;)

LizFoster (640)

@CodingCactus I know, I should.. Good night for real now! (Lol)

CodingCactus (4360)

@LizFoster yaaaay. But for only 4 hours!