I want to print the pattern as shown below: if n = 6, then it must print in 6 lines: * *, *, * * * *, * * *, * * * * * *, * * * * *