code.cpp 200 B

1234567
  1. /* Create a function that takes in a word and determines
  2. * whether or not it is plural. A plural word is one that
  3. * ends in "s".
  4. */
  5. bool isPlural(std::string word) {
  6. return word.back()=='s';
  7. }