Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def isCorrectSentence(inputString)
- length = inputString.length
- if inputString[0] >= 'A' and inputString[0] <= 'Z' and inputString[length - 1] == '.' then
- return true
- else
- return false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment