Creating patterns using loops is a fundamental exercise in programming. One of the most interesting patterns is the diamond shape, which consists of a symmetrical arrangement of stars (*). In this ...