By gunasekaran

This project is used to generate pascal's triangle using C++ by accepting the number of rows from the user.

This program is used to print the pascal's triangle by accepting the number of rows from the user using c++. Once the rows are accepted by using two for-loops we print the numbers which are required in the pascal's triangle and one for-loop for printing spaces. The first for-loop keeps track of the number of rows while the next for-loop keeps track of the spaces between the number in the pascal's triangle and finally, the third for-loop keeps track of the number to be printed in the pascal's triangle. Thus by using three for-loops we can generate the pascal's triangle.

Submitted by gunasekaran (haris)

Download packets of source code on Coders Packet

## Comments