
Patrick B. answered 10/16/19
Math and computer tutor/teacher
using namespace std;
#include <iostream>
int main()
{
int ** ary;
ary = new int*[5];
for (int iLoop=0; iLoop<5; iLoop++)
{
ary[iLoop] = new int[5];
}
for (int iLoop=0; iLoop<5; iLoop++)
{
for (int jLoop=0; jLoop<5; jLoop++)
{
ary[iLoop][jLoop]= (jLoop+1);
cout << ary[iLoop][jLoop] << " ";
}
cout << endl;
}
for (int iLoop=0; iLoop<5; iLoop++)
{
delete(ary[iLoop] );
}
delete(ary);
}