Run lab5app (which is executable) to see what your program should do. Here is the output you should see: 0 1 2 3 4 56 7 89 10 11 12 13 14 1 2 3 45678 9 10 11 12 13 14 15 2 3 4 5 6 78 9 10 11 12 13 14 15 16 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 7 89 10 11 12 13 14 15 16 17 18 19 20 21 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 Your app should produce the same result. The file app.cpp asks you to fill in the code. You can build the app using the make utility, which is supported by the Makefile. Don’t delete any code from the file. The table that you create must use the table variable that is declared in the main function. The table must be dynamically declared To check memory leaks: valgrindtool-memcheck–leak-check-full executable-file
Expert Answer
#include<iostream>
#include<iomanip>
const int ROWS = 10;
const int COLS = 15;
using namespace std;
int main()
{
int k = COLS;
for(int i=0; i< ROWS; i++){
for(int j = i; j<k; j++){
cout<<j<<“t”;
}
k++;
cout<<endl;
}
return 0;
}