Write a C++ Program to Print Lowerhalf and Upperhalf of Triangle Matrix

By | December 27, 2016

C++ Program to Print Lowerhalf and Upperhalf  of  Triangle Matrix


Write a C++ Program to Print Lowerhalf and Upperhalf of Triangle Matrix. Here’s a Simple Program to Print Lowerhalf and Upperhalf of Triangle Matrix in C++ Programming Language.


Definition of Matrix


  • A matrix is a collection of numbers arranged into a fixed number of rows and columns. Usually the numbers are real numbers. In general, matrices can contain complex numbers but we won’t see those here.
  • Here is an example of a matrix with three rows and three columns:

Rectangular matrix

  • The top row is row 1. The leftmost column is column 1. This matrix is a 3×3 matrix because it has three rows and three columns.
  • In describing matrices, the format is:

rows X columns

  • Each number that makes up a matrix is called an element of the matrix. The elements in a matrix have specific locations.
  • The upper left corner of the matrix is row 1 column 1. In the above matrix the element at row 1 col 1 is the value 1. The element at row 2 column 3 is the value 4.6.

Below is the source code for C++ Program to Print Lowerhalf and Upperhalf of Triangle Matrix which is successfully compiled and run on Windows System to produce desired output as shown below :


SOURCE CODE : :



OUTPUT : :



If you found any error or any queries related to the above program or any questions or reviews , you wanna to ask from us ,you may Contact Us through our contact Page or you can also comment below in the comment section.We will try our best to reach upto you in the short interval.


Thanks for reading the post….

Leave a Reply