Share your repls and programming experiences

← Back to all posts
Pythagorean Triples
LizFoster (592)

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..

(╥_╥)

Please Enjoy!!

Commentshotnewtop
Warhawk947 (510)

@LizFoster strikes again

with another amazing project

LizFoster (592)

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

DJWang (1130)

@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 (592)

@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. #^__ ^#

ipastrano (245)

@LizFoster is at it again! This is so cool! No wonder you're content creator! (Hope you finally got to sleep)

LizFoster (592)

@ipastrano Ha ha ha! Thank you so much! I'm glad my projects are interesting to people. ^ ^*

Yes, I did, in the end, get a bit of sleep!

CodingCactus (2527)

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 (592)

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

LizFoster (592)

@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 (592)

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

Thecrowbar1234 (146)

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

LizFoster (592)

@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 (1325)

👌 noice :P

Our schedules are so different XD wow.

LizFoster (592)

@Highwayman Thank you!

Also, yes, they certainly are! wwwww

Highwayman (1325)

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

LizFoster (592)

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

Highwayman (1325)

@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 (592)

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

Highwayman (1325)

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

LiamDonohue (280)

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

LizFoster (592)

@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 (2527)

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

LizFoster (592)

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

CodingCactus (2527)

@LizFoster yaaaay. But for only 4 hours!