// give diamond pattern int number =7; // Diamond starting with single star in first row int m =1; // Columnar printing int n; // Outer loop 1 // Prints the first half diamond // Condition holding true till // number of rows initialized ...
Learn how to print an inverted numeric pattern in Swift with this simple tutorial. Understand the concepts and see example code for better clarity.