Monday, September 10, 2018

write a program to perform operation and understand what will happening.....

INPUT.

Enter Number of Element            ::  8
11
22
33
44
55
66
77
88

Array List Will Be
---------------------------------------------------
['11', '22', '33', '44', '55', '66', '77', '88']


OUTPUT

['11', '22', '33', '44', '55', '66', '77', '88']    
['88', '11', '22', '33', '44', '55', '66', '77']    1st step
['77', '88', '11', '22', '33', '44', '55', '66']    2nd step
['66', '77', '88', '11', '22', '33', '44', '55']    3rd step
['55', '66', '77', '88', '11', '22', '33', '44']    4th step
['44', '55', '66', '77', '88', '11', '22', '33']    5th step
['33', '44', '55', '66', '77', '88', '11', '22']    6th step
['22', '33', '44', '55', '66', '77', '88', '11']    7th step
['11', '22', '33', '44', '55', '66', '77', '88']    8th step

                                                                               

                                                                                      # sanjay kumar yadav
                                                                                      https://github.com/sanjayengineer121
                                                                                      https://www.linkedin.com/in/sanjaykumar111/
 

No comments:

Post a Comment