How would you write a program in c++ that would print all pythagorean triples from 1 to 50? :?:

Probably start by opening a book, and getting the formula for a pythagorean triple, I'd guess.

Try to find that, write something based off of it, and we'll help you work it out. We're not going to write the program for you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.