This question already has an answer here:
- Write a program in a language of your choice.
That program is designed to rotate a block of text. Example:
BOB 90 deg DCB CAT --> OAO DOG CW GTB
- You may assume the blocks of text are loaded into a variable
- You may assume a square block, but of any size.
- You may assume the line-endings are
- You're not allowed to use a library that already rotates blocks of text.
- Code Golf rules, shortest program wins.