Page 13 - ipp11
P. 13

Program 12: Write a program to display the second largest element of a given list.
                      Code:










                      Output:










                 Program 13: Write a program 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:















                                                              9
   8   9   10   11   12   13   14   15   16   17   18