1234567891011121314151617181920212223242526
#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; }