Generate The Following Patterns Using Nested If Statements