Εχω την παρακατω ασκηση να κανω, Θα μπορουσατε να μου δωσετε καποιες πιστες ?
Method returning specific word from given input text.
</summary>
<param name="input">input text</param>
<param name="wordNumberToFind">Parameter presenting word number to be returned</param>
<returns>
Specific word from a given text. We assume that only considered separator of words is space (' ').
Example 1: GetWordFromText("one two three", 2) should return "two"
Example 2: GetWordFromText("one;two three", 2) should return "three"
Example 3: GetWordFromText("one", 1) should return "one"
When input parameter wordNumberToFind is less than 1, method should throw
ArgumentOutOfRangeException. When input text does not have enough words
(GetWordFromText("one", 2)), method should throw ArgumentException.
Method should ignore all spaces in the beginning and in the end of input text.
</returns>
Ευχαριστω πολυ