Daily Swift Challenge(3/10):Arithmetic Operations Calculator

Today’s project is based on the Project 2, also the Stanford course demo. It is a arithmetic operations calculator can add, subtract,multiply and divide.

Here is the screenshot:

And here’s the source code of the demo:

From today’s project, I’ve learned:

  • Use $0, $1, $2, $3, $4…
  • Make my code incredibly concise, more readable and very extensible



Like what you read? Give Elinaliu a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.