Page 16 - ipp11
P. 16

Program 18: A list Num contains the following elements:
               3, 21, 5, 6, 14, 8, 14, 3
               Write a program to swap the content with the next value divisible by 7 so that the resultant array
               will look like: 3, 5, 21, 6, 8, 14, 3, 14
                    Code:










                    Output:




































                                                               12
   11   12   13   14   15   16   17   18   19   20   21