Rust for the Novice Programmer/Basic Maths Testing Program

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Basic Maths Testing Program[edit | edit source]

The best way to learn is to do!

Let's get stuck in with a program so we can logic around.

The program specification[edit | edit source]

  • The program will print out a simple maths question and the user answers it.
  • It will be a command line program which means that it all happens in the terminal. This is opposed to a GUI program which may be what you're more used which are programs that use GUIs(Graphical User Interfaces).
  • The maths question will be just a simple addition or subtraction at first.

There is more planning we could do but for now, let's get stuck in.