Print Pattern Using Nested If Statements