I dont have any idea about my assignment,a pseudo code or even better,part of the code,will help me a lot~
Well,my program should ask the user to enter a paragraph of words,then output the words according to 20 char per line.Also the end of the line cant be half of the word.I cant explain it quite well,but the example below shows what i should do.
Enter some sentences (between 150 ¨C 200 chars): What¡¯s the
difference between a mathematician and a computer scientist?
Answer: A mathematician has all the theories and no answers. A
computer scientist has all the answers and no theories.
Formatted text:
What's the difference between
a mathematician and a computer
scientist? Answer : A
mathematician has all the
theories and no answers. A
computer scientist has all the
answers and no theories.