0
Plz Java program for this pattern
12345 23451 34512 45123
4 odpowiedzi
+ 2
Convert input into string, make a loop that :
- copy the first character into a temp var
- move 4 last character back, each 1 step back
- put back the temp var into 5th character
+ 1
A hint for you; you'll need to use modulus.
0
there are so many ways to do this. The first thing that popped on my mind was using nesting loops