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:

Floyd’s triangle: Floyd’s triangle is defined by filling the rows of the triangle with consecutive numbers, starting with the number one in the top left corner. Let’s write a program which prints The Floyd’s triangle . Step 1:… Continue Reading →