C++ Program to Print Pascal Triangle

C++ Program to Print Pascal Triangle 2

Write a C++ Program to Print Pascal Triangle with an example. In this C++ pascal triangle example, long factorialNum(int number) finds the factorial of a number. Within the nested for loop, we used this method to get our pascal triangle. #include<iostream> using namespace std; long factorialNum(int number) { long factorial = 1; for (int i … Read more