Page 302 - CA_Blue( J )_Class9
P. 302

You will get the following output:
                         MENU
                         Enter 1 for Floyd's triangle
                         Enter 2 for pattern

                         Enter your choice: 1
                         1
                         2      3
                         4      5      6
                         7      8      9       10
                         11     12     13      14     15
                         MENU
                         Enter 1 for Floyd's triangle
                         Enter 2 for pattern
                         Enter your choice: 2
                         A

                         A      B
                         A      B      C
                         A      B      C       D
                         MENU
                         Enter 1 for Floyd's triangle
                         Enter 2 for pattern
                         Enter your choice: 3
                         Wrong Choice

                                                         VARIABLE DESCRIPTION
                             NAME              DATATYPE                           DESCRIPTION
                        ch               int                    Choice Variable
                        i                int                    Loop Variable
                        j                int                    Loop Variable
                        k                int                    Variable to increase value one by one
                        c                int                    Stores the ASCII value

























                   300    Touchpad Computer Applications-IX
   297   298   299   300   301   302   303   304   305   306   307