Saved Bookmarks
| 1. |
You have to write two programs to transform input array into output array. Part 1 Input Array : 2,4,8,5,12,15,6,10,7,30,25,43,46,45,21 Output Array : 2,4,8, 12, 6, 7, 43,46,21, 5,15,10,30,25,45 Part 2 Input Array : 2,4,8,5,12,15,6,10,7,30,25,43,46,45,21 Output Array : 2,4,8,21,12,46,6,43 ,7,30,25,10,15,45,5 IMPORTANT: Do not use duplicate or extra array, your program will be rejected if you use extra array. Output should be same array not print statement. Please note pattern of output. Please Help Me..!! |
|
Answer» ong>Answer: Input Array : 2,4,8,5,12,15,6,10,7,30,25,43,46,45,21 Output Array : 2,4,8, 12, 6, 7, 43,46,21, 5,15,10,30,25,45 Part 2 Input Array : 2,4,8,5,12,15,6,10,7,30,25,43,46,45,21 Output Array : 2,4,8,21,12,46,6,43 ,7,30,25,10,15,45,5 IMPORTANT: Do not USE |
|