Pattern-Printing starpattern:-Program to print a pattern in diamond shape of the size n(number of rows) using a single loop.