Page 33 - IPP-11
P. 33

Program 15: WAP to display the second largest element of a given list.
                      Code:
















                      Output:















                 Program 16: WAP to display the cumulative elements of a given list.
                 For example, List is [10,20,30,40]
                 Output should be [10, 30, 60, 100]
                      Code:















                      Output:


























                                                              10
   28   29   30   31   32   33   34   35   36   37   38