Skip to content

Instantly share code, notes, and snippets.

@wofockham
Last active August 29, 2015 14:08
Show Gist options
  • Save wofockham/46031defd3080eaff230 to your computer and use it in GitHub Desktop.
Save wofockham/46031defd3080eaff230 to your computer and use it in GitHub Desktop.

Wordy Addition

Write a program that takes a word problem in the format:

What is 5 plus 13?

and returns the answer as an integer.

The program should handle large numbers and negative numbers.

Extensions

  1. Modify your program to also handle problems of the type:

What is 7 plus 9 plus 3?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment