Using C# to write a program to display the Pythagorean Triples table according to the number of sets required by user

Write a program to display the Pythagorean Triples table according to the number of sets required by user. For an example, if user enter 4, then the application will list out the first 4 Pythagorean Triples in a table format (as shown in below)

a b c

3 4 5

5 12 13

8 15 17

7 24 25

Provide user to enter the number of set (s) needed and display output accordingly.

I Suggest you try making a program yourself, If you’re stuck anywhere, share the code and we’ll be happy to help you debug it.