السلام عليكم
كيفكم؟؟
عندي واجب في برمجه c++وتسليمو السبت منى عارفه احلو
السوال :
Write a program that output 2 choices:
*Press 1 to shift right
*Press 2 to shift left
If the user presses 1, then the program will shift each element in the array to it’s the next right position.
When the program reach to the value of the last position, then the program will shift it to the first position.
If the user presses 2, then the program will shift each element in the array to it’s previous left position.
When the program reach to the value of the first position,then the program will shift it to the last position.
Hints:The user enters array elements
The Size of the array is 20
وشكرا^^