(10 XP) A function that checks if a string contains spaces.
- Fork this repository to your GitHub account.
- Open solution file in Visual Studio.
- Open file
Checker.cs
. - Implement the method
HasSpaces(string str)
that checks, if a string contains a space. - Run with
CTRL+F5
to test it. - If all tests are passed, commit & sync your repository.
- Send a link to your repository for Lab Master (in #slack) to check it.
HasSpaces("hello") ➞ false
HasSpaces("hello, world") ➞ true
HasSpaces(" ") ➞ true
HasSpaces("") ➞ false
HasSpaces(",./!@#") ➞ false