About this document
Bubble Sort Pattern in C++ by Popular-Games is a document available to read on EtoBox.
This C++ code takes in a number from the user, then uses nested for loops to print out a pyramid pattern with that number. It first prints the ascending half of the pyramid by iterating from 1 to the given number, padding with spaces and printing the number. It then prints the descending half by iterating from the number down to 1.
- Author
- Popular-Games
- Language
- EN