Rotating an array
It reads a sequence of positive integers. It stores it
in an array, then it prompts the user to enter an
integer, and then rotates clockwise the content of the
array a corresponding number of positions. The contents
the array are printed out whenever it changes.
For example, if the sequence was 1,2,3,4,5 and the number 3 is entered, the array becomes 3,4,5,1,2
and if the number 1 is now entered, the array becomes 2,3,4,5,1





Me program eka ona?? Katada puluwan?? C++ ??
It reads a sequence of positive integers. It stores it
in an array, then it prompts the user to enter an
integer, and then rotates clockwise the content of the
array a corresponding number of positions. The contents
the array are printed out whenever it changes.
For example, if the sequence was 1,2,3,4,5 and the number 3 is entered, the array becomes 3,4,5,1,2
and if the number 1 is now entered, the array becomes 2,3,4,5,1





Me program eka ona?? Katada puluwan?? C++ ??
Last edited:



