MACHINE PROBLEM NUMBER 3
Input File: rotate.txt
In ``Rotating Sentences,'' you are asked to rotate a series of input sentences 90 degrees
clockwise. So instead of displaying the input sentences from left to right and top to
bottom, your program will display them from top to bottom and right to left.
INPUT / OUTPUT
As input to your program, you will be given a maximum of 15 sentences, each not
exceeding 100 characters long. Legal characters include: newline, space, any
punctuation characters, digits, and lower case or upper case English letters. The input
file starts with an integer indicating the number of lines that the input file contains.
The output of the program should have the last sentence printed out vertically in the
leftmost column; the first sentence of the input would subsequently end up at the
Sample Input (rotate.txt)
Rene Decartes once said,
"I think, therefore I am."
All 2 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.