Pythagorean

Hello.I can find pythagorean numbers in c++ but i don`t know that how can i print n times for example if(n==3) it prints (3,4,5) (6,8,10) (5,12,13),can someone help me please?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <iostream>

using namespace std;

void myMethod(size_t maxValueForHypo )
{
   for(size_t i = 0 ; i <maxValueForHypo ; ++i )
    {
         //your algorithm
         for(..)
           for(...)
           {
              cout << "(" << j <<","<<k<<i<<")\n";
           }
    }
}

int main(int argc , char* argv[])
{
size_t verifyHypothenusValueUpTo =0;
cin >> verifyHypothenusValueUpTo ;


   myMethod(verifyHypothenusValueUpTo );
  return EXIT_SUCCESS;
}
Topic archived. No new replies allowed.