I Haz Codes

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Menu
simple calculator

Create a program which will do the following.

  • Ask for two numbers, stored in separate variables.
  • Ask if they want to add or subtract.
  • If they select “add” then the program will display the two numbers added up.
  • If they select “subtract” then the program will display the two numbers subtracted.

It should also display the calculation it is going to do. For example –

5 + 2 = 7



Comments are closed.

Information