Write a C++ program to print the lower and upper triangles of a square matrix

Write a C++ program to print the lower and upper triangles of a square matrix.

Output

C++ lower and upper triangles of a square matrix
C++ lower and upper triangles of a square matrix
Prof.Fazal Rehman Shamil (Available for Professional Discussions)
1. Message on Facebook page for discussions,
2. Video lectures on Youtube
3. Email is only for Advertisement/business enquiries.