Posts Tagged: floyd’s triangle

Floyd’s triangle in C++.

Floyd’s triangle : Floyd’s triangle is a right angled-triangle which formed by the natural numbers, so the following C++ program ask to the user to enter the range (up to how many line he or she wants to print) to print the Floyd’s Triangle up to the given range: